aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-07 02:49:20 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-18 14:03:55 +0000
commit7c4bcb3c0caa52a11830b90e33aee8b5476b8cdd (patch)
tree68740769c7b086902dc50ffb5d8c6113a8fef9c2
parentfcac7d246dcc54f1e1e3d2126adc0bab74f7e796 (diff)
downloadaports-7c4bcb3c0caa52a11830b90e33aee8b5476b8cdd.tar.gz
aports-7c4bcb3c0caa52a11830b90e33aee8b5476b8cdd.tar.bz2
aports-7c4bcb3c0caa52a11830b90e33aee8b5476b8cdd.tar.xz
main/startup-notification: modernise and add test suite
-rw-r--r--main/startup-notification/APKBUILD23
1 files changed, 13 insertions, 10 deletions
diff --git a/main/startup-notification/APKBUILD b/main/startup-notification/APKBUILD
index c538d8eccb..ca480e11ad 100644
--- a/main/startup-notification/APKBUILD
+++ b/main/startup-notification/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=startup-notification
pkgver=0.12
-pkgrel=2
+pkgrel=3
pkgdesc="Monitor and display application startup"
url="http://www.freedesktop.org"
arch="all"
@@ -12,27 +12,30 @@ makedepends="libx11-dev libsm-dev xcb-util-dev"
source="http://www.freedesktop.org/software/$pkgname/releases/$pkgname-$pkgver.tar.gz"
depends_dev="libsm-dev xcb-util-dev"
-_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
+ cd "$builddir"
+ update_config_sub
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--localstatedir=/var \
- --sysconfdir=/etc \
- || return 1
- make || return 1
+ --sysconfdir=/etc
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
sha512sums="ea1246acdb50dafd9ced9914ec3c8f0d499c0ca3cfd447b43a444c768a6e9ea7135e5c42d9ca0089354698ac235bd86d42f12c70a3a17c9c79f998c07461f7ab startup-notification-0.12.tar.gz"