void-packages/srcpkgs/unibilium/template
2017-09-27 05:23:40 -03:00

33 lines
895 B
Bash

# Template file for 'unibilium'
pkgname=unibilium
version=1.2.1
revision=1
build_style=gnu-makefile
hostmakedepends="libtool perl"
short_desc="A simple, self-contained terminfo library"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="LGPL-3"
homepage="https://github.com/mauke/unibilium"
distfiles="https://github.com/mauke/${pkgname}/archive/v${version}.tar.gz"
checksum=6045b4f6adca7b1123284007675ca71f718f70942d3a93d8b9fa5bd442006ec1
do_build() {
if [ "$CROSS_BUILD" ]; then
cp /usr/bin/libtool .
sed -e "s,CCLD=.*,CCLD=$CC,g;s,CC=.*,CC=$CC,g" -i libtool
sed -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
}
}