aboutsummaryrefslogtreecommitdiffstats
path: root/main/libunistring/APKBUILD
blob: 8e69276123545c24499302109292d7692e5391e3 (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
52
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libunistring
pkgver=0.9.5
pkgrel=1
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/*.la
	rm -f "$pkgdir"/usr/lib/charset.alias
}

md5sums="6f8766d0b0497380d725639e19c04310  libunistring-0.9.5.tar.xz"
sha256sums="0b3f4dbea5124f56639a701376ed78e5f595e7b720cfbb0cf1f81f375894c77b  libunistring-0.9.5.tar.xz"
sha512sums="ee4d6372b2b0c55b600e5ecdcc1ec43c2092c216d2a20bf985fed7244519177cdfe0adfbf8f09a990db99ac555b07316a3cdd125b9edb33e069746f6a507c3c7  libunistring-0.9.5.tar.xz"