summaryrefslogtreecommitdiffstats
path: root/abs/core/intltool/PKGBUILD
blob: 36e18b7e980b74bd72b3dd2b77aeba9ed5163f01 (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
# Maintainer: Eric BĂ©langer <eric@archlinux.org>

pkgname=intltool
pkgver=0.51.0
pkgrel=4
pkgdesc="The internationalization tool collection"
arch=('any')
url="https://launchpad.net/intltool"
license=('GPL')
depends=('perl-xml-parser')
source=(https://launchpad.net/intltool/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz{,.asc}
        intltool-0.51.0-perl-5.26.patch
        intltool-merge-Create-cache-file-atomically.patch
        intltool_distcheck-fix.patch)
sha256sums=('67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd'
            'SKIP'
            '458f5d53ac358810879080f69b11649901babcacc14471c243eb850e9436d546'
            '13bd6deb65dc94933f132919d4eea4c24354d7c1c1c9e5930cb6e70c75703763'
            '58cb7d60796bc69c7d0865f106feb589d0271619e62f8741bff6f5ce1a2615ff')
validpgpkeys=('9EBD001680E8C8F9FAC61A9BE1A701D4C9DE75B5')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -Np1 -i ../intltool-0.51.0-perl-5.26.patch
  patch -Np1 -i ../intltool-merge-Create-cache-file-atomically.patch
  patch -Np1 -i ../intltool_distcheck-fix.patch
}

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

check() {
  cd ${pkgname}-${pkgver}
  make check
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -D -m644 doc/I18N-HOWTO "${pkgdir}/usr/share/doc/${pkgname}/I18N-HOWTO"
}