42 lines
965 B
Bash
42 lines
965 B
Bash
# Template file for 'bglibs'
|
|
pkgname=bglibs
|
|
version=2.03
|
|
revision=3
|
|
nocross=yes
|
|
hostmakedepends="libtool perl"
|
|
short_desc="A collection of libraries by Bruce Guenter"
|
|
maintainer="bougyman <tj@rubyists.com>"
|
|
license="GPL-2"
|
|
homepage="http://untroubled.org/bglibs/"
|
|
distfiles="http://untroubled.org/bglibs/bglibs-2.03.tar.gz"
|
|
checksum=fcc80b2deef7819abc9c155c4f393f4fc51e73400139c1c78bbe3015f2b12739
|
|
|
|
pre_build() {
|
|
# disable tests
|
|
sed -i '/^all: /s/selftests//' Makefile
|
|
}
|
|
|
|
do_build() {
|
|
echo "/usr/include" > conf-include
|
|
echo "/usr/lib" > conf-lib
|
|
echo "/usr/bin" > conf-bin
|
|
echo "/usr/share/man" > conf-man
|
|
make
|
|
}
|
|
|
|
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() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|