summaryrefslogtreecommitdiffstats
path: root/main/libunique/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-03-01 07:16:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-03-01 07:16:59 +0000
commitad66d5ee866451bbd91880b4a7e79c696bd0bbd1 (patch)
tree41309b94b0255715c8526fdb6c7755c4373d8670 /main/libunique/APKBUILD
parent468a0ec374c320f4e24643a30e250855851725c2 (diff)
downloadaports-ad66d5ee866451bbd91880b4a7e79c696bd0bbd1.tar.bz2
aports-ad66d5ee866451bbd91880b4a7e79c696bd0bbd1.tar.xz
main/libunique: g_const_return is deprecated so replace with const
Diffstat (limited to 'main/libunique/APKBUILD')
-rw-r--r--main/libunique/APKBUILD19
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"