void-packages/srcpkgs/bglibs/template
2020-05-27 10:26:37 +02:00

38 lines
975 B
Bash

# Template file for 'bglibs'
pkgname=bglibs
version=2.04
revision=1
hostmakedepends="libtool perl which"
short_desc="Collection of libraries by Bruce Guenter"
maintainer="bougyman <tj@rubyists.com>"
license="LGPL-2.1-or-later"
homepage="http://untroubled.org/bglibs/"
distfiles="http://untroubled.org/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=e4ae34a4c43f72ff0c5f100b3ac432460e7d736a7f0708d5e429c97dd5c52474
nocross=yes
do_build() {
echo "/usr/include" > conf-include
echo "/usr/lib" > conf-lib
echo "/usr/bin" > conf-bin
echo "/usr/share/man" > conf-man
echo "$CC $CFLAGS" > conf-cc
echo "$CC $LDFLAGS" > conf-ld
make ${makejobs}
}
do_install() {
install_prefix="${DESTDIR}" make install
find "${DESTDIR}"/usr/lib -name "*.a" -exec chmod 0644 {} \;
vdoc README
}
bglibs-devel_package() {
depends="bglibs>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}