37 lines
898 B
Bash
37 lines
898 B
Bash
# Template file for 'lowdown'
|
|
pkgname=lowdown
|
|
version=0.4.0
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
makedepends="libdiff"
|
|
short_desc="Simple markdown translator"
|
|
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|
license="ISC"
|
|
homepage="https://kristaps.bsd.lv/lowdown/"
|
|
distfiles="https://kristaps.bsd.lv/lowdown/snapshots/lowdown-${version}.tar.gz"
|
|
checksum=d075ddb3c1fb9908d1b72c395429a0faebd3940f9c995e817eb2e93923c9ccaa
|
|
|
|
do_configure() {
|
|
local _libc=glibc
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) _libc=musl ;;
|
|
esac
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
cp "${FILESDIR}/configure.$_libc" configure.local
|
|
fi
|
|
./configure PREFIX=/usr MANDIR=/usr/share/man
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
}
|
|
|
|
lowdown-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/share/man/man3/*.3"
|
|
}
|
|
}
|