aboutsummaryrefslogtreecommitdiffstats
path: root/main/libunistring/APKBUILD
blob: 89a37e620fc8d1ff6c58957ec80e3f78771e0037 (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
50
51
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libunistring
pkgver=0.9.6
pkgrel=0
pkgdesc="Library for manipulating Unicode strings and C strings"
url="http://www.gnu.org/software/libunistring/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.gnu.org/gnu/libunistring/libunistring-$pkgver.tar.xz"

_builddir="$srcdir"/libunistring-$pkgver
prepare() {
	local i
	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 \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/charset.alias
}

md5sums="cb09c398020c27edac10ca590e9e9ef3  libunistring-0.9.6.tar.xz"
sha256sums="2df42eae46743e3f91201bf5c100041540a7704e8b9abfd57c972b2d544de41b  libunistring-0.9.6.tar.xz"
sha512sums="4261fc6a0cfc016571eefa73e7fa135eb3c49b40380026543b89779b85282414b502ac59d5ab8c7c74c721ee4b8571f029eaa9ce2f3bbcac69e484b908816fcc  libunistring-0.9.6.tar.xz"