2008-10-04 04:29:49 +00:00
|
|
|
# Template build file for 'glib'
|
|
|
|
pkgname=glib
|
2015-09-28 22:38:38 +00:00
|
|
|
version=2.46.0
|
2015-09-30 09:39:19 +00:00
|
|
|
revision=2
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2015-05-07 12:05:52 +00:00
|
|
|
configure_args="--enable-libelf --disable-fam --with-pcre=system --enable-static"
|
2014-09-21 18:39:07 +00:00
|
|
|
hostmakedepends="automake libtool pkg-config perl python libxslt docbook-xsl"
|
2015-05-07 12:05:52 +00:00
|
|
|
makedepends="zlib-devel pcre-devel libffi-devel dbus-devel elfutils-devel"
|
2008-09-26 19:59:07 +00:00
|
|
|
short_desc="The GNU library of C routines"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-06-06 06:30:19 +00:00
|
|
|
homepage="http://www.gtk.org/"
|
|
|
|
license="LGPL-2.1"
|
2014-03-27 07:19:23 +00:00
|
|
|
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-$version.tar.xz"
|
2015-09-28 22:38:38 +00:00
|
|
|
checksum=b1cee83469ae7d80f17c267c37f090414e93960bd62d2b254a5a96fbc5baacb4
|
2013-02-13 09:38:27 +00:00
|
|
|
|
2013-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2014-06-06 04:43:15 +00:00
|
|
|
hostmakedepends+=" glib-devel"
|
2013-02-13 09:38:27 +00:00
|
|
|
fi
|
2013-04-12 11:13:49 +00:00
|
|
|
|
2014-06-06 04:43:15 +00:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2013-04-12 11:13:49 +00:00
|
|
|
libglib-devel_package() {
|
2015-02-26 08:48:54 +00:00
|
|
|
depends="${makedepends} glib>=${version}_${revision}"
|
2013-05-13 15:13:21 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 11:13:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/glib-2.0
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
2013-08-07 18:35:27 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 11:13:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
glib-devel_package() {
|
2013-11-12 16:44:28 +00:00
|
|
|
depends="python perl libglib-devel>=${version}_${revision}"
|
2013-05-13 15:13:21 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 11:13:49 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|