void-packages/srcpkgs/glib/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

64 lines
1.9 KiB
Bash

# Template build file for 'glib'
pkgname=glib
version=2.42.2
revision=1
build_style=gnu-configure
configure_args="--disable-fam --with-pcre=system --enable-static"
hostmakedepends="automake libtool pkg-config perl python libxslt docbook-xsl"
makedepends="zlib-devel pcre-devel libffi-devel dbus-devel"
short_desc="The GNU library of C routines"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gtk.org/"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-$version.tar.xz"
checksum=a3cc1ebd2bd310a9fdf42ae4293ee713cdf1764bd29f552febf3bf44cadae7db
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" glib-devel"
fi
case "$XBPS_TARGET_MACHINE" in
# disable libelf on musl, our elfutils version uses GNU extensions.
*-musl) configure_args+=" --disable-libelf";;
*) configure_args+=" --enable-libelf"; makedepends+=" elfutils-devel";;
esac
pre_configure() {
autoreconf -fi
}
libglib-devel_package() {
depends="${makedepends} glib>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/glib-2.0
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
glib-devel_package() {
depends="python perl libglib-devel>=${version}_${revision}"
short_desc+=" - development files"
pycompile_dirs="/usr/share/glib-2.0"
pkg_install() {
vmove usr/bin/glib-compile-resources
vmove usr/bin/glib-genmarshal
vmove usr/bin/glib-mkenums
vmove usr/bin/gtester-report
vmove usr/bin/gdbus-codegen
vmove usr/bin/gtester
vmove usr/bin/glib-gettextize
vmove usr/share/man/man1/glib-compile-resources.1
vmove usr/share/man/man1/glib-gettextize.1
vmove usr/share/man/man1/gtester.1
vmove usr/share/man/man1/glib-mkenums.1
vmove usr/share/man/man1/gdbus-codegen.1
vmove usr/share/man/man1/glib-genmarshal.1
vmove usr/share/man/man1/gtester-report.1
for f in gtk-doc aclocal glib-2.0 gdb; do
vmove usr/share/${f}
done
}
}