void-packages/srcpkgs/bglibs/template

45 lines
1.0 KiB
Bash
Raw Normal View History

2015-03-31 04:26:47 +02:00
# Template file for 'bglibs'
pkgname=bglibs
version=2.03
2016-05-26 19:48:12 +02:00
revision=4
nocross=yes
hostmakedepends="libtool perl"
2016-05-26 19:48:12 +02:00
short_desc="Collection of libraries by Bruce Guenter"
2015-03-31 04:26:47 +02:00
maintainer="bougyman <tj@rubyists.com>"
license="GPL-2"
homepage="http://untroubled.org/bglibs/"
2016-05-26 19:48:12 +02:00
distfiles="http://untroubled.org/${pkgname}/${pkgname}-${version}.tar.gz"
2015-03-31 04:26:47 +02:00
checksum=fcc80b2deef7819abc9c155c4f393f4fc51e73400139c1c78bbe3015f2b12739
pre_build() {
# disable tests
sed -i '/^all: /s/selftests//' Makefile
}
2015-03-31 04:26:47 +02:00
do_build() {
echo "/usr/include" > conf-include
echo "/usr/lib" > conf-lib
2015-03-31 04:26:47 +02:00
echo "/usr/bin" > conf-bin
echo "/usr/share/man" > conf-man
2016-05-26 19:48:12 +02:00
echo "$CC $CFLAGS" > conf-cc
echo "$CC $LDFLAGS" > conf-ld
make ${makejobs}
2015-03-31 04:26:47 +02:00
}
do_install() {
install_prefix="${DESTDIR}" make install
find "${DESTDIR}"/usr/lib -name "*.a" -exec chmod 0644 {} \;
vdoc README
vlicense COPYING
}
bglibs-devel_package() {
depends="bglibs>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
2015-04-09 16:53:34 +02:00
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}