51 lines
1.6 KiB
Bash
51 lines
1.6 KiB
Bash
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
|
# then please put 'unknown'.
|
|
|
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
|
pkgname=intltool
|
|
pkgver=0.51.0
|
|
pkgrel=1
|
|
pkgdesc="The internationalization tool collection"
|
|
arch=('x86_64')
|
|
url="https://freedesktop.org/wiki/Software/intltool"
|
|
license=('GPL')
|
|
depends=('perl-xml-parser')
|
|
source=(https://launchpad.net/intltool/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz
|
|
intltool-0.51.0-perl-5.26.patch
|
|
intltool-merge-Create-cache-file-atomically.patch
|
|
intltool_distcheck-fix.patch
|
|
intltool-fixrace.patch)
|
|
sha256sums=(67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd
|
|
458f5d53ac358810879080f69b11649901babcacc14471c243eb850e9436d546
|
|
13bd6deb65dc94933f132919d4eea4c24354d7c1c1c9e5930cb6e70c75703763
|
|
58cb7d60796bc69c7d0865f106feb589d0271619e62f8741bff6f5ce1a2615ff
|
|
5c453ccb8bfe6e0b05d7a55e66dcfa793ea81d9bbe9fdc41f668326ba9310deb)
|
|
|
|
prepare() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
patch -Np1 -i ${srcdir}/intltool-0.51.0-perl-5.26.patch
|
|
patch -Np1 -i ${srcdir}/intltool-merge-Create-cache-file-atomically.patch
|
|
patch -Np1 -i ${srcdir}/intltool_distcheck-fix.patch
|
|
patch -Np1 -i ${srcdir}/intltool-fixrace.patch
|
|
|
|
}
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
${CONFIGURE}
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
install -v -Dm644 doc/I18N-HOWTO ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/I18N-HOWTO
|
|
}
|