[arch-commits] Commit in gimp-help/trunk (PKGBUILD)
Fabio Castelli
muflone at archlinux.org
Sun Oct 5 15:16:08 UTC 2014
Date: Sunday, October 5, 2014 @ 17:16:07
Author: muflone
Revision: 120165
upgpkg: gimp-help 2.8.2-3
gimp-help 2.8.2-3
Modified:
gimp-help/trunk/PKGBUILD
----------+
PKGBUILD | 33 ++++++++++++++++++---------------
1 file changed, 18 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-10-05 14:35:08 UTC (rev 120164)
+++ PKGBUILD 2014-10-05 15:16:07 UTC (rev 120165)
@@ -1,16 +1,16 @@
# $Id$
-# Maintainer:
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
pkgbase=gimp-help
pkgver=2.8.2
-pkgrel=2
+pkgrel=3
arch=('any')
url='http://docs.gimp.org/'
license=('GPL' 'LGPL')
makedepends=('python2' 'docbook-xsl')
options=(!strip !zipman)
-source=(http://ftp.gimp.org/pub/gimp/help/gimp-help-$pkgver.tar.bz2)
+source=("http://ftp.gimp.org/pub/gimp/help/${pkgbase}-${pkgver}.tar.bz2")
md5sums=('a591c8974b2f4f584d0a769d52ed6c5b')
_languages=(
@@ -35,29 +35,32 @@
)
_package() {
- pkgdesc="$2 help files for Gimp"
- install -dm755 "$pkgdir"/usr/share/gimp/2.0/help/$1
- cp -rL "$srcdir"/$pkgbase-$pkgver/html/$1 \
- "$pkgdir"/usr/share/gimp/2.0/help
+ _locale="$1"
+ _language="$2"
+ pkgdesc="${_language} help files for Gimp"
+ install -dm755 "${pkgdir}/usr/share/gimp/2.0/help/${_locale}"
+ cp -rL "${srcdir}/${pkgbase}-${pkgver}/html/${_locale}" \
+ "${pkgdir}/usr/share/gimp/2.0/help"
}
prepare() {
- cd $pkgbase-$pkgver
- sed -e '1s/python$/python2/' -i tools/xml2po.py
+ cd "${pkgbase}-${pkgver}"
+ sed -e '1s/python$/python2/' -i "tools/xml2po.py"
}
build(){
- cd $pkgbase-$pkgver
+ cd "${pkgbase}-${pkgver}"
./configure --prefix=/usr --without-gimp
make
}
-for _lang in "${_languages[@]}"; do
+for _lang in "${_languages[@]}"
+do
_locale=${_lang%% *}
- _pkgname=gimp-help-${_locale,,}
+ _pkgname=${pkgbase}-${_locale,,}
- pkgname+=($_pkgname)
- eval "package_$_pkgname() {
- _package $_lang
+ pkgname+=(${_pkgname})
+ eval "package_${_pkgname}() {
+ _package ${_lang}
}"
done
More information about the arch-commits
mailing list