alr-repo/md4c/alr.sh
2024-11-04 21:13:09 +03:00

34 lines
635 B
Bash

name='md4c'
version='0.5.2'
release='1'
desc='C Markdown parser.'
homepage='https://github.com/mity/md4c'
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
architectures=('amd64')
license=('MIT')
deps=(
'glibc'
)
build_deps=(
'cmake'
)
sources=("https://github.com/mity/md4c/archive/release-$version.tar.gz")
checksums=('SKIP')
build() {
cmake -B build -S $name-release-$version \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build -j$(($(nproc) - 1))
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 $name-release-$version/LICENSE.md -t "$pkgdir"/usr/share/licenses/$name/
}