aboutsummaryrefslogtreecommitdiffstats
path: root/main/liboil
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-10 23:12:47 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-16 17:36:19 +0000
commit85a59dbfa589e5c327fc24fa2d46657df7070fc9 (patch)
treecb55fc4b67b43b1996073ca58537dada5c6e8ad8 /main/liboil
parentad13e605ea7608b417100ba68816e206874f7f50 (diff)
downloadaports-85a59dbfa589e5c327fc24fa2d46657df7070fc9.tar.bz2
aports-85a59dbfa589e5c327fc24fa2d46657df7070fc9.tar.xz
main/liboil: modernise, add check
Diffstat (limited to 'main/liboil')
-rw-r--r--main/liboil/APKBUILD29
1 files changed, 16 insertions, 13 deletions
diff --git a/main/liboil/APKBUILD b/main/liboil/APKBUILD
index 6159b9d9a7..9ff2cfba29 100644
--- a/main/liboil/APKBUILD
+++ b/main/liboil/APKBUILD
@@ -1,37 +1,40 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=liboil
pkgver=0.3.17
-pkgrel=5
+pkgrel=6
pkgdesc="Library of simple functions that are optimized for various CPUs."
url="https://liboil.freedesktop.org/"
arch="all"
-license="custom"
+license="BSD-2-Clause-NetBSD, BSD-3-Clause, Weird-Motorola-License" # FIXME
subpackages="$pkgname-dev $pkgname-doc"
depends=
source="http://$pkgname.freedesktop.org/download/$pkgname-$pkgver.tar.gz"
-_builddir="$srcdir/$pkgname-$pkgver"
-
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
+ cd "$builddir"
+ update_config_sub
+ default_prepare
}
build() {
unset CFLAGS
- cd "$_builddir"
+ 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 -j1 DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make -j1 DESTDIR="$pkgdir" install
install -m755 -d "$pkgdir"/usr/share/licenses/liboil
- install -m644 COPYING "$pkgdir"/usr/share/licenses/liboil/ || return 1
+ install -m644 COPYING "$pkgdir"/usr/share/licenses/liboil/
}
sha512sums="26f60d37af8aae435ff17f2aa852a4e52cebd96ef7be04cb4dc14c61bc42160e333e317e5b33f05f6d4b6c819b15c4ecd1d4c03018515252daea26dd4ed60145 liboil-0.3.17.tar.gz"