aboutsummaryrefslogtreecommitdiffstats
path: root/main/libunistring/APKBUILD
blob: 95970553a25d45faeac3e48741438523b91211e5 (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.7
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="82e0545363d111bfdfec2ddbfe62ffd3  libunistring-0.9.7.tar.xz"
sha256sums="2e3764512aaf2ce598af5a38818c0ea23dedf1ff5460070d1b6cee5c3336e797  libunistring-0.9.7.tar.xz"
sha512sums="52d5240dbf9b483976e980027187484dae6bbc103d44be8f9797832e772cde2ea03fcd27b062c81d42ea9b9f5a21216993695f2435bf8c06e48af916be0475f9  libunistring-0.9.7.tar.xz"