void-packages/srcpkgs/lowdown/template
2017-02-19 10:52:40 +01:00

29 lines
780 B
Bash

# Template file for 'lowdown'
pkgname=lowdown
version=0.1.16
revision=1
wrksrc="${pkgname}-VERSION_${version//./_}"
build_style=gnu-makefile
make_install_args="MANDIR=/usr/share/man"
short_desc="Simple markdown translator"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="ISC"
homepage="https://kristaps.bsd.lv/lowdown/"
distfiles="https://github.com/kristapsdz/lowdown/archive/VERSION_${version//./_}.tar.gz"
checksum=942170f6469993b0d50cd3d03ecfbc859ca4c994925d0b779ffea6ba66eb316f
pre_build() {
sed -i -e 's/\($(CC) -o \$@ .*\)$/\1 $(LDFLAGS)/' Makefile
}
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"
}
}