2009-05-15 17:09:20 +00:00
|
|
|
# Template file for 'libunique'.
|
|
|
|
pkgname=libunique
|
2011-06-20 14:49:42 +00:00
|
|
|
version=3.0.2
|
2014-06-14 07:02:17 +00:00
|
|
|
revision=6
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2010-10-28 15:30:41 +00:00
|
|
|
configure_args="--enable-bacon=yes --enable-dbus=yes"
|
2014-02-21 10:01:22 +00:00
|
|
|
hostmakedepends="pkg-config glib-devel"
|
2013-04-13 08:15:49 +00:00
|
|
|
makedepends="dbus-glib-devel gtk+3-devel"
|
2009-05-15 17:09:20 +00:00
|
|
|
short_desc="Library for writing single instance applications"
|
2014-06-14 07:02:17 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-20 14:49:42 +00:00
|
|
|
homepage="http://live.gnome.org/LibUnique"
|
|
|
|
license="LGPL-2.1"
|
2013-04-13 08:15:49 +00:00
|
|
|
distfiles="${GNOME_SITE}/$pkgname/3.0/$pkgname-$version.tar.bz2"
|
2011-06-20 14:49:42 +00:00
|
|
|
checksum=50269a87c7aabf1e25f01b3bbb280133138ffd7b6776289894c614a4b6ca968d
|
2009-05-15 17:09:20 +00:00
|
|
|
|
2014-02-21 09:58:57 +00:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
2009-05-15 17:09:20 +00:00
|
|
|
|
2014-02-21 09:58:57 +00:00
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
makedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
2009-05-15 17:09:20 +00:00
|
|
|
|
2013-04-13 08:15:49 +00:00
|
|
|
libunique-devel_package() {
|
2014-02-21 09:58:57 +00:00
|
|
|
depends="dbus-glib-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:58:57 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 08:15:49 +00:00
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|