2011-10-14 17:13:45 +02:00
|
|
|
# Template file for 'libunique1'.
|
|
|
|
pkgname=libunique1
|
|
|
|
version=1.1.6
|
2012-10-11 10:10:36 +02:00
|
|
|
revision=4
|
2011-10-14 17:13:45 +02:00
|
|
|
wrksrc="libunique-${version}"
|
|
|
|
patch_args="-Np1"
|
2012-10-11 10:10:36 +02:00
|
|
|
subpackages="$pkgname-devel"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2011-10-14 17:13:45 +02:00
|
|
|
configure_args="--disable-static --disable-dbus"
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="automake pkg-config gobject-introspection gtk+-devel"
|
2011-10-14 17:13:45 +02:00
|
|
|
short_desc="Library for writing single instance applications (GTK+2)"
|
|
|
|
maintainer="xtraeme <xtraeme@gmail.org>"
|
|
|
|
homepage="http://live.gnome.org/LibUnique"
|
|
|
|
license="LGPL-2.1"
|
2012-10-11 10:10:36 +02:00
|
|
|
distfiles="${GNOME_SITE}/libunique/1.1/libunique-$version.tar.bz2"
|
2011-10-14 17:13:45 +02:00
|
|
|
checksum=e5c8041cef8e33c55732f06a292381cb345db946cf792a4ae18aa5c66cdd4fbb
|
|
|
|
long_desc="
|
|
|
|
Unique is a library for writing single instance application. If you launch a
|
|
|
|
single instance application twice, the second instance will either just quit
|
|
|
|
or will send a message to the running instance.
|
|
|
|
|
|
|
|
Unique makes it easy to write this kind of applications, by providing a base
|
|
|
|
class, taking care of all the IPC machinery needed to send messages to a
|
|
|
|
running instance, and also handling the startup notification side.
|
|
|
|
|
|
|
|
Unique aims to replace the BaconMessageConnection code that has been copied
|
|
|
|
by many projects and the code using Bonobo and D-Bus.
|
|
|
|
|
|
|
|
This package is built against GTK+2 toolkit, unlike libunique which uses
|
|
|
|
the GTK+3 toolkit."
|
|
|
|
|
|
|
|
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
|
|
|
|
autoreconf -fi
|
|
|
|
}
|