void-packages/srcpkgs/unibilium/template

34 lines
906 B
Bash

# Template file for 'unibilium'
pkgname=unibilium
version=2.0.0
revision=2
build_style=gnu-makefile
hostmakedepends="libtool perl"
short_desc="Simple, self-contained terminfo library"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="LGPL-3.0-or-later"
homepage="https://github.com/mauke/unibilium"
distfiles="https://github.com/mauke/${pkgname}/archive/v${version}.tar.gz"
checksum=78997d38d4c8177c60d3d0c1aa8c53fd0806eb21825b7b335b1768d7116bc1c1
do_build() {
if [ "$CROSS_BUILD" ]; then
cp /usr/bin/libtool .
vsed -e "s,CCLD=.*,CCLD=$CC,g;s,CC=.*,CC=$CC,g" -i libtool
vsed -e 's,libtool,./libtool,g' -i Makefile
fi
make ${makejobs}
}
unibilium-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
}
}