diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-08-17 02:40:23 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-09-19 10:54:40 +0000 |
commit | 6cea35eddcc3caee3ac4b300341c68c4f0c97b9e (patch) | |
tree | 07f17b17c0ec8db462e8cf0c4599193aa9763d45 /main | |
parent | 9f5eacba415b1dafa381bd3cd191a3cc2199b3b2 (diff) | |
download | aports-6cea35eddcc3caee3ac4b300341c68c4f0c97b9e.tar.bz2 aports-6cea35eddcc3caee3ac4b300341c68c4f0c97b9e.tar.xz |
main/util-macros: modernise, add tests
Diffstat (limited to 'main')
-rw-r--r-- | main/util-macros/APKBUILD | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/main/util-macros/APKBUILD b/main/util-macros/APKBUILD index 680518d939..0002b41c2e 100644 --- a/main/util-macros/APKBUILD +++ b/main/util-macros/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=util-macros pkgver=1.19.1 -pkgrel=0 +pkgrel=1 pkgdesc="X.Org Autotools macros" url="http://xorg.freedesktop.org/" arch="noarch" @@ -11,18 +11,22 @@ makedepends="" source="http://www.x.org/releases/individual/util/$pkgname-$pkgver.tar.bz2" build() { - cd "$srcdir"/$pkgname-$pkgver + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix=/usr \ - || return 1 - make || return 1 + --prefix=/usr + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$srcdir"/$pkgname-$pkgver - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } |