blob: 40db892144bf58ce0604a6f43cd886311811fd71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=liboil
pkgver=0.3.17
pkgrel=7
pkgdesc="Library of simple functions that are optimized for various CPUs."
url="https://liboil.freedesktop.org/"
arch="all"
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
fix-s390x-stamp.patch"
prepare() {
cd "$builddir"
update_config_sub
default_prepare
}
build() {
unset CFLAGS
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install
install -m755 -d "$pkgdir"/usr/share/licenses/liboil
install -m644 COPYING "$pkgdir"/usr/share/licenses/liboil/
}
sha512sums="26f60d37af8aae435ff17f2aa852a4e52cebd96ef7be04cb4dc14c61bc42160e333e317e5b33f05f6d4b6c819b15c4ecd1d4c03018515252daea26dd4ed60145 liboil-0.3.17.tar.gz
58bd22f90062bd87765734650bffa292e50b1a6744a74665a59f61ceaa8d0a668d48fe73b84fcaa0371dfa299a5715bd91e4f4699b1db8cb16ea09953b2bf45c fix-s390x-stamp.patch"
|