[arch-commits] Commit in gimp-help/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Nov 9 22:35:25 UTC 2018
Date: Friday, November 9, 2018 @ 22:35:23
Author: foutrelis
Revision: 405015
archrelease: copy trunk to community-staging-any
Added:
gimp-help/repos/community-staging-any/
gimp-help/repos/community-staging-any/PKGBUILD
(from rev 405013, gimp-help/trunk/PKGBUILD)
----------+
PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
Copied: gimp-help/repos/community-staging-any/PKGBUILD (from rev 405013, gimp-help/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-11-09 22:35:23 UTC (rev 405015)
@@ -0,0 +1,65 @@
+# 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=6
+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/${pkgbase}-${pkgver}.tar.bz2")
+md5sums=('a591c8974b2f4f584d0a769d52ed6c5b')
+
+_languages=(
+ 'ca "Catalan"'
+ 'da "Danish"'
+ 'de "German"'
+ 'el "Greek"'
+ 'en "English"'
+ 'en_GB "English (United Kingdom)"'
+ 'es "Spanish"'
+ 'fr "French"'
+ 'it "Italian"'
+ 'ja "Japanese"'
+ 'ko "Korean"'
+ 'nl "Dutch"'
+ 'nn "Norwegian "'
+ 'pt_BR "Brazilian Portuguese"'
+ 'ru "Russian"'
+ 'sl "Slovenian"'
+ 'sv "Swedish"'
+ 'zh_CN "Chinese (simplified)"'
+)
+
+_package() {
+ _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"
+}
+
+build(){
+ cd "${pkgbase}-${pkgver}"
+ ./configure --prefix=/usr --without-gimp
+ make
+}
+
+for _lang in "${_languages[@]}"
+do
+ _locale=${_lang%% *}
+ _pkgname=${pkgbase}-${_locale,,}
+
+ pkgname+=(${_pkgname})
+ eval "package_${_pkgname}() {
+ _package ${_lang}
+ }"
+done
More information about the arch-commits
mailing list