39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template build file for 'giblib'
|
|
pkgname=giblib
|
|
version=1.2.4
|
|
revision=6
|
|
wrksrc="${pkgname}-${version}.orig"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --with-imlib2-prefix=${XBPS_CROSS_BASE}/usr"
|
|
make_install_args="docsdir=/usr/share/doc/giblib"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="imlib2-devel freetype-devel libX11-devel libXext-devel"
|
|
short_desc="Programming utility library"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://linuxbrit.co.uk/giblib/"
|
|
license="MIT"
|
|
#distfiles="http://linuxbrit.co.uk/downloads/$pkgname-$version.tar.gz"
|
|
distfiles="${DEBIAN_SITE}/main/g/${pkgname}/${pkgname}_${version}.orig.tar.gz"
|
|
checksum=e437756ce3ded019946fb3d979991cda7604bc345dbb1338b17655caff65a3d3
|
|
|
|
pre_configure() {
|
|
sed -e 's,imlib2-config --libs,pkg-config --libs imlib2,g' -i configure
|
|
sed -e 's,imlib2-config --cflags,pkg-config --cflags imlib2,g' -i configure
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
giblib-devel_package() {
|
|
depends="imlib2-devel freetype-devel zlib-devel libX11-devel
|
|
libXext-devel giblib>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|