summaryrefslogtreecommitdiffstats
path: root/main/fribidi/APKBUILD
blob: 8a78fee70bdca0b426efcb5ce6c581796799c6a4 (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
43
44
45
46
47
48
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fribidi
pkgver=0.19.6
pkgrel=1
pkgdesc="A Free Implementation of the Unicode Bidirectional Algorithm"
url="http://fribidi.org"
arch="all"
license="LGPL2+"
subpackages="$pkgname-dev $pkgname-doc"
depends=""
makedepends=""
source="http://fribidi.org/download/fribidi-$pkgver.tar.bz2
	format.patch"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build ()
{
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--with-glib=no \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="ce93d862344991173dabb609bf93ca1d  fribidi-0.19.6.tar.bz2
eaac20910502561926414e6611ef5201  format.patch"
sha256sums="cba8b7423c817e5adf50d28ec9079d14eafcec9127b9e8c8f1960c5ad585e17d  fribidi-0.19.6.tar.bz2
f4b95b5e1bb53fd99f1844a7a92a7ee1d5dfdeeaccb0ff959648e85d8f3eb42a  format.patch"
sha512sums="0661cf8e0985edfd5bf02c8de32432bf2faacadcaf35aef4e039a28f802a0468288e76b60231ebe7b54f909bd4d3ecc31a1fc94e83d434ae16dd21de6089629e  fribidi-0.19.6.tar.bz2
a0b304e6ba76c86fb40c1818fbec5be1fb27a292080531042f72a2292a7db89b6389fa49b8709daae8dc2dcccca9f6f078515bf54ba3b080852a0d1291ead57c  format.patch"