archrelease: copy trunk to extra-x86_64
[arch-packages.git] / intltool / repos / extra-any / PKGBUILD
blob14d66898dfa26782ba7367288bdcfe014633a6cb
1 # Maintainer: Eric BĂ©langer <eric@archlinux.org>
3 pkgname=intltool
4 pkgver=0.51.0
5 pkgrel=6
6 pkgdesc="The internationalization tool collection"
7 arch=('any')
8 url="https://launchpad.net/intltool"
9 license=('GPL')
10 depends=('perl-xml-parser')
11 source=(https://launchpad.net/intltool/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz{,.asc}
12         intltool-0.51.0-perl-5.26.patch
13         intltool-merge-Create-cache-file-atomically.patch
14         intltool_distcheck-fix.patch
15         intltool-fixrace.patch)
16 sha256sums=('67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd'
17             'SKIP'
18             '458f5d53ac358810879080f69b11649901babcacc14471c243eb850e9436d546'
19             '13bd6deb65dc94933f132919d4eea4c24354d7c1c1c9e5930cb6e70c75703763'
20             '58cb7d60796bc69c7d0865f106feb589d0271619e62f8741bff6f5ce1a2615ff'
21             '5c453ccb8bfe6e0b05d7a55e66dcfa793ea81d9bbe9fdc41f668326ba9310deb')
22 validpgpkeys=('9EBD001680E8C8F9FAC61A9BE1A701D4C9DE75B5')
24 prepare() {
25   cd ${pkgname}-${pkgver}
26   patch -Np1 -i ../intltool-0.51.0-perl-5.26.patch
27   patch -Np1 -i ../intltool-merge-Create-cache-file-atomically.patch
28   patch -Np1 -i ../intltool_distcheck-fix.patch
29   patch -Np1 -i ../intltool-fixrace.patch # https://bugs.launchpad.net/intltool/+bug/1687644
32 build() {
33   cd ${pkgname}-${pkgver}
34   ./configure --prefix=/usr
35   make
38 check() {
39   cd ${pkgname}-${pkgver}
40   make check
43 package() {
44   cd ${pkgname}-${pkgver}
45   make DESTDIR="${pkgdir}" install
46   install -D -m644 doc/I18N-HOWTO "${pkgdir}/usr/share/doc/${pkgname}/I18N-HOWTO"