aboutsummaryrefslogtreecommitdiffstats
path: root/main/gettext/APKBUILD
blob: bd9eec61e82654ea93a8b99fb602ab1811898b34 (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
# Maintainer: Carlo Landmeter <clandmeter at gmail.com>
pkgname=gettext
pkgver=0.17
pkgrel=4
pkgdesc="GNU locale utilities"
url="http://www.gnu.org/software/gettext/gettext.html"
license='GPL'
depends=
makedepends="libiconv-dev expat-dev ncurses-dev bash libxml2-dev libgomp"
source="ftp://ftp.mirror.nl/pub/mirror/gnu/gettext/gettext-0.17.tar.gz
	gettext-0.15-expat-no-dlopen.patch
	gettext-0.17-gnuinfo.patch
	gettext-0.17-open-args.patch
	"
subpackages="$pkgname-doc $pkgname-dev"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	for i in ../*.patch; do
		msg "Applying $i..."
		patch -p1 < $i || return 1
	done
}

build() {
	cd "$_builddir"
	# http://bugs.gentoo.org/show_bug.cgi?id=81628
	export CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"

	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--disable-static
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir/" install
}

md5sums="58a2bc6d39c0ba57823034d55d65d606  gettext-0.17.tar.gz
20dbf5cfc16f8726e7594fb49da5665c  gettext-0.15-expat-no-dlopen.patch
51ba4ca1008c76564c25c632a4ee8b3e  gettext-0.17-gnuinfo.patch
aa0b9cb60cd87298dbfc2662b98e8a0b  gettext-0.17-open-args.patch"