summaryrefslogtreecommitdiffstats
path: root/main/liboil/APKBUILD
blob: ffbda71a3104cdd6b8140702da4a5d0c7c0a653b (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=liboil
pkgver=0.3.17
pkgrel=5
pkgdesc="Library of simple functions that are optimized for various CPUs."
url="http://liboil.freedesktop.org/"
arch="all"
license="custom"
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
}

build() {
	unset CFLAGS
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make -j1 DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
	install -m755 -d "$pkgdir"/usr/share/licenses/liboil
	install -m644 COPYING "$pkgdir"/usr/share/licenses/liboil/ || return 1
}
md5sums="47dc734f82faeb2964d97771cfd2e701  liboil-0.3.17.tar.gz"