aboutsummaryrefslogtreecommitdiffstats
path: root/main/libunique/APKBUILD
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-14 12:35:03 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-09 11:51:45 +0000
commited42c3c981c0b63bcd3999142952e609d0521889 (patch)
tree028bb7b75d954e60556ad59d3fb3e1982633cc28 /main/libunique/APKBUILD
parent2bd21b1d4d0955058eb6ac234b428f362bbaca86 (diff)
downloadaports-ed42c3c981c0b63bcd3999142952e609d0521889.tar.bz2
aports-ed42c3c981c0b63bcd3999142952e609d0521889.tar.xz
main/libunique: modernize abuild
Diffstat (limited to 'main/libunique/APKBUILD')
-rw-r--r--main/libunique/APKBUILD26
1 files changed, 11 insertions, 15 deletions
diff --git a/main/libunique/APKBUILD b/main/libunique/APKBUILD
index bb997e5c51..cac4b8a75b 100644
--- a/main/libunique/APKBUILD
+++ b/main/libunique/APKBUILD
@@ -6,25 +6,21 @@ pkgdesc="Library for writing single instance applications"
url="http://live.gnome.org/LibUnique"
arch="all"
license="LGPL"
-depends=
+depends=""
makedepends="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
g_const_return.patch"
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir"/$pkgname-$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"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -33,14 +29,14 @@ build() {
--localstatedir=/var \
--enable-maintainer-flags=no \
--enable-debug=no \
- --disable-static \
- || return 1
- make || return 1
+ --disable-static
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
+
sha512sums="82893e1d51a553b3c1413498e48a3a132e2c05779b4442c3732b5429d698e133741615657432a3d05c82a05c79bb59acc13df500bb08010212155db5e4ee6bde libunique-1.1.6.tar.bz2
04952fa7f5cee407d1071b233b9fb9b2a460029d96f81edd2539032d85ef62a5b78599ec83d44f0a3931fe6e413f733366b38d7a2413b45e6cbbc1f000449d4b g_const_return.patch"