APKBUILD 985 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=liboil
3
pkgver=0.3.17
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=5
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="Library of simple functions that are optimized for various CPUs."
url="http://liboil.freedesktop.org/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8 9 10 11 12
license="custom"
subpackages="$pkgname-dev $pkgname-doc"
depends=
source="http://$pkgname.freedesktop.org/download/$pkgname-$pkgver.tar.gz"

13 14 15 16 17 18 19 20
_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
Natanael Copa's avatar
Natanael Copa committed
21
	unset CFLAGS
22
	cd "$_builddir"
23 24 25 26 27
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
28
	make || return 1
29 30 31 32
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
Natanael Copa's avatar
Natanael Copa committed
33 34 35 36
	make -j1 DESTDIR="$pkgdir" install || return 1
	install -m755 -d "$pkgdir"/usr/share/licenses/liboil
	install -m644 COPYING "$pkgdir"/usr/share/licenses/liboil/ || return 1
}
37
sha512sums="26f60d37af8aae435ff17f2aa852a4e52cebd96ef7be04cb4dc14c61bc42160e333e317e5b33f05f6d4b6c819b15c4ecd1d4c03018515252daea26dd4ed60145  liboil-0.3.17.tar.gz"