lowdown: update to 0.3.1.

Closes: #12102 [via git-merge-pr]
This commit is contained in:
maxice8 2018-03-04 11:29:02 -03:00 committed by Michael Aldridge
parent 3361765787
commit c55bbb2056
2 changed files with 14 additions and 5 deletions

View File

@ -1,20 +1,24 @@
# Template file for 'lowdown'
pkgname=lowdown
version=0.1.16
version=0.3.1
revision=1
wrksrc="${pkgname}-VERSION_${version//./_}"
build_style=gnu-makefile
make_install_args="MANDIR=/usr/share/man"
configure_args="PREFIX=/usr MANDIR=/usr/share/man"
build_style=configure
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
checksum=af1fe2904dd543e46ff2b19ccd601df053986f3913d5abf68ac9c62da50754ec
pre_build() {
sed -i -e 's/\($(CC) -o \$@ .*\)$/\1 $(LDFLAGS)/' Makefile
cat >> Makefile.configure <<-EOF
CFLAGS += ${CFLAGS}
LDFLAGS += ${LDFLAGS}
EOF
}
post_install() {
vlicense LICENSE.md
}
@ -25,5 +29,6 @@ lowdown-devel_package() {
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/share/man/man3/*.3"
}
}

4
srcpkgs/lowdown/update Normal file
View File

@ -0,0 +1,4 @@
# This pattern is incomplete, it finds out the versions like '0_3_1' but
# comparison with 'xbps-uhelper cmpver' results in it being always treated
# as a lower version
pattern="VERSION_\K[\d_]+"