APKBUILD 753 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fribidi
3
pkgver=0.19.5
4
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="A Free Implementation of the Unicode Bidirectional Algorithm"
url="http://fribidi.org"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8 9 10 11
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends=
12
source="http://fribidi.org/download/fribidi-$pkgver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
13

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

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

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

package() {
33
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
34 35
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
Natanael Copa's avatar
Natanael Copa committed
36
}
37
md5sums="925bafb97afee8a2fc2d0470c072a155  fribidi-0.19.5.tar.bz2"