diff options
Diffstat (limited to 'main/libunique/APKBUILD')
-rw-r--r-- | main/libunique/APKBUILD | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/main/libunique/APKBUILD b/main/libunique/APKBUILD index 83294fa83..d80f89cb8 100644 --- a/main/libunique/APKBUILD +++ b/main/libunique/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libunique pkgver=1.1.6 -pkgrel=3 +pkgrel=4 pkgdesc="Library for writing single instance applications" url="http://live.gnome.org/LibUnique" arch="all" @@ -9,14 +9,26 @@ license="LGPL" depends= makedepends="pkgconfig gtk+-dev dbus-glib-dev" subpackages="$pkgname-dev $pkgname-doc" -source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/1.1/$pkgname-$pkgver.tar.bz2" +source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/1.1/$pkgname-$pkgver.tar.bz2 + g_const_return.patch" _builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return;; + esac + done +} + build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ + --enable-maintainer-flags=no \ + --enable-debug=no \ --disable-static \ || return 1 make || return 1 @@ -27,4 +39,5 @@ package() { make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" -name '*.la' -delete } -md5sums="7955769ef31f1bc4f83446dbb3625e6d libunique-1.1.6.tar.bz2" +md5sums="7955769ef31f1bc4f83446dbb3625e6d libunique-1.1.6.tar.bz2 +4777001a4f1c9533c8e852ce5d09ff14 g_const_return.patch" |