aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-07 15:05:24 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-20 10:01:08 +0000
commitf8d90b7ecf82927cd350f70c416a45954f3f62a7 (patch)
tree957ea2aa2bacbe1f9c886363a9196d1806ac6203
parentac5439a7518ae3f1b23d1bda20f22e3404533fa4 (diff)
downloadaports-f8d90b7ecf82927cd350f70c416a45954f3f62a7.tar.gz
aports-f8d90b7ecf82927cd350f70c416a45954f3f62a7.tar.bz2
aports-f8d90b7ecf82927cd350f70c416a45954f3f62a7.tar.xz
main/dbus-glib: modernise, add test suite
-rw-r--r--main/dbus-glib/APKBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/main/dbus-glib/APKBUILD b/main/dbus-glib/APKBUILD
index 8aaa236e24..0de0ada06a 100644
--- a/main/dbus-glib/APKBUILD
+++ b/main/dbus-glib/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dbus-glib
pkgver=0.108
-pkgrel=0
+pkgrel=1
pkgdesc="GLib bindings for DBUS"
url="http://www.freedesktop.org/wiki/Software/DBusBindings"
arch="all"
@@ -10,12 +10,9 @@ subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="dbus-dev glib-dev gettext-dev expat-dev"
source="http://dbus.freedesktop.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
-depends_dev=""
-
-_builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -23,14 +20,18 @@ build() {
--sysconfdir=/etc \
--localstatedir=/var \
--enable-static=no \
- --enable-bash-completion=no \
- || return 1
- make || return 1
+ --enable-bash-completion=no
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
md5sums="a66a613705870752ca9786e0359aea97 dbus-glib-0.108.tar.gz"