aboutsummaryrefslogtreecommitdiffstats
path: root/main/libunique3
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-14 13:17:57 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-09 13:00:35 +0000
commitd51f70b3d4c71d86dbbce8fd066ac54a4f4d149e (patch)
tree575ee4517dfb5b493bfea72947e636ab49f716a9 /main/libunique3
parenta069152f89eb4ab9e21f322b18df7aad4742e299 (diff)
downloadaports-d51f70b3d4c71d86dbbce8fd066ac54a4f4d149e.tar.bz2
aports-d51f70b3d4c71d86dbbce8fd066ac54a4f4d149e.tar.xz
main/libunique3: modernize abuild
Diffstat (limited to 'main/libunique3')
-rw-r--r--main/libunique3/APKBUILD31
1 files changed, 13 insertions, 18 deletions
diff --git a/main/libunique3/APKBUILD b/main/libunique3/APKBUILD
index 249ae93071..6ccb6a37cd 100644
--- a/main/libunique3/APKBUILD
+++ b/main/libunique3/APKBUILD
@@ -6,39 +6,34 @@ pkgdesc="Library for writing single instance applications"
url="http://live.gnome.org/LibUnique"
arch="all"
license="LGPL"
-depends=
+depends=""
makedepends="gtk+3.0-dev"
subpackages="$pkgname-dev $pkgname-doc"
-source="http://ftp.gnome.org/pub/gnome/sources/libunique/${pkgver%.*}/libunique-$pkgver.tar.xz
- "
+source="http://ftp.gnome.org/pub/gnome/sources/libunique/${pkgver%.*}/libunique-$pkgver.tar.xz"
+
+builddir="$srcdir"/libunique-$pkgver
-_builddir="$srcdir"/libunique-$pkgver
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return;;
- esac
- done
+ update_config_sub
+ default_prepare
}
build() {
- cd "$_builddir"
- ./configure \
+ cd "$builddir"
+ ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
- --disable-dbus \
- || return 1
- make || return 1
+ --disable-dbus
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
+
sha512sums="b053b9f265c751bd581d15bf73246fb087075eaf75760565671c09a4ab80db342b4d2185050a877c4e25276d24f7895f4325ca60b918a7c4acd9d1591e97a8b4 libunique-3.0.2.tar.xz"