core/po4a/PKGBUILD

35 lines
1.1 KiB
Bash
Raw Normal View History

2013-06-20 19:27:30 +08:00
# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
#contributions from Debian: http://patch-tracker.debian.org/patch/series/view/po4a/0.42-2/fix-tempfile-usage.patch
2010-08-16 11:25:27 +08:00
pkgname=po4a
2013-06-20 19:27:30 +08:00
pkgver=0.44
2010-08-16 11:25:27 +08:00
pkgrel=1
pkgdesc="po4a - tools for helping translation of documentation"
2013-06-20 19:27:30 +08:00
arch=('x86_64')
2010-08-16 11:25:27 +08:00
license=('GPL')
url="http://po4a.alioth.debian.org/"
depends=('perl' 'gettext')
makedepends=('docbook-xsl' 'perl-text-wrapi18n' 'perl-module-build' 'perl-locale-gettext' 'perl-term-readkey' 'perl-sgmls')
options=(!emptydirs)
2013-06-20 19:27:30 +08:00
source=("https://alioth.debian.org/frs/download.php/3786/${pkgname}-${pkgver}.tar.gz"
'fix-tempfile-usage.patch')
md5sums=('ff7b6859d729a52a57a880d6cf6a7fcf'
'59e9a33d9b030bf213d0fcc97e128a5f')
2010-08-16 11:25:27 +08:00
build()
{
2011-05-15 10:49:55 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2013-06-20 19:27:30 +08:00
patch -p1 -i "${srcdir}/fix-tempfile-usage.patch"
perl Build.PL installdirs=vendor create_packlist=0
2011-05-15 10:49:55 +08:00
perl Build
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
2013-06-20 19:27:30 +08:00
perl Build destdir=${pkgdir} install
2011-05-15 10:49:55 +08:00
# remove perllocal.pod and .packlist
find ${pkgdir} -name .packlist -o -name perllocal.pod -delete
2010-08-16 11:25:27 +08:00
}