From 91f1759e69edafe8c403c37a820bbf8a06d9ee6f Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sat, 7 Sep 2024 23:18:11 +0800 Subject: [PATCH] intltool 0.51.0-1 --- intltool/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 intltool/PKGBUILD diff --git a/intltool/PKGBUILD b/intltool/PKGBUILD new file mode 100644 index 0000000..7bf47d9 --- /dev/null +++ b/intltool/PKGBUILD @@ -0,0 +1,38 @@ +# 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 +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) +sha256sums=(67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd) + +prepare() { + cd ${pkgname}-${pkgver} + + sed -i 's:\\\${:\\\$\\{:' intltool-update.in +} + +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 +}