summaryrefslogtreecommitdiff
path: root/core/gettext/PKGBUILD
blob: b5a5cedfd0c1468e997e95cb22b020893f807c19 (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
# $Id: PKGBUILD 142112 2011-11-05 10:14:09Z tpowa $
# Maintainer:

pkgname=gettext
pkgver=0.18.1.1
pkgrel=4.1
pkgdesc="GNU internationalization library"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/gettext/"
license=('GPL')
groups=('base')
depends=('gcc-libs' 'acl' 'sh' 'glib2')
optdepends=('cvs: for autopoint tool')
options=(!libtool !docs)
install=gettext.install
source=(ftp://ftp.gnu.org/pub/gnu/gettext/${pkgname}-${pkgver}.tar.gz
	gnulib-no-gets.patch)
md5sums=('3dd55b952826d2b32f51308f2f91aa89'
         'ca29994ca712580744feda170999e7ae')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -p1 -i "$srcdir/gnulib-no-gets.patch"
  sed -i -e 's/libexpat.so.0/libexpat.so.1/' gettext-tools/src/x-glade.c
  ./configure --build=$CHOST --prefix=/usr --enable-csharp
  make
}

#check() {
#  cd "${srcdir}/${pkgname}-${pkgver}"
#  make check
#}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}