2011-10-14 15:13:45 +00:00
|
|
|
# Template file for 'libunique1'.
|
|
|
|
pkgname=libunique1
|
|
|
|
version=1.1.6
|
2014-06-14 07:02:17 +00:00
|
|
|
revision=7
|
2011-10-14 15:13:45 +00:00
|
|
|
wrksrc="libunique-${version}"
|
|
|
|
patch_args="-Np1"
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2011-10-14 15:13:45 +00:00
|
|
|
configure_args="--disable-static --disable-dbus"
|
2014-02-21 09:59:48 +00:00
|
|
|
hostmakedepends="libtool automake pkg-config"
|
2013-04-13 08:15:49 +00:00
|
|
|
makedepends="gtk+-devel"
|
2011-10-14 15:13:45 +00:00
|
|
|
short_desc="Library for writing single instance applications (GTK+2)"
|
2014-06-14 07:02:17 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-14 15:13:45 +00:00
|
|
|
homepage="http://live.gnome.org/LibUnique"
|
|
|
|
license="LGPL-2.1"
|
2012-10-11 08:10:36 +00:00
|
|
|
distfiles="${GNOME_SITE}/libunique/1.1/libunique-$version.tar.bz2"
|
2011-10-14 15:13:45 +00:00
|
|
|
checksum=e5c8041cef8e33c55732f06a292381cb345db946cf792a4ae18aa5c66cdd4fbb
|
|
|
|
|
2014-02-21 09:57:53 +00:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
desc_option_gir="Enable support for building gobject introspection data"
|
2011-10-14 15:13:45 +00:00
|
|
|
|
2014-02-21 09:57:53 +00:00
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
2011-10-14 15:13:45 +00:00
|
|
|
|
2014-02-21 09:57:53 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
makedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
2011-10-14 15:13:45 +00:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
# Fix build with glib 2.30.
|
|
|
|
for f in $(find ${wrksrc} -name *.[ch]); do
|
|
|
|
sed -i -s "s|G_CONST_RETURN|const|g" "$f"
|
|
|
|
done
|
2013-04-16 10:48:40 +00:00
|
|
|
sed -e "s,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g" \
|
|
|
|
-e "s,AM_PROG_CC_STDC,AC_PROG_CC,g" -i configure.ac
|
2011-10-14 15:13:45 +00:00
|
|
|
autoreconf -fi
|
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
libunique1-devel_package() {
|
2014-02-21 09:57:53 +00:00
|
|
|
depends="gtk+-devel ${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-02-21 09:57:53 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 08:15:49 +00:00
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|