Date: Sunday, October 5, 2014 @ 17:16:35 Author: muflone Revision: 120166
archrelease: copy trunk to community-any Added: gimp-help/repos/community-any/PKGBUILD (from rev 120165, gimp-help/trunk/PKGBUILD) Deleted: gimp-help/repos/community-any/PKGBUILD ----------+ PKGBUILD | 129 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 66 insertions(+), 63 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2014-10-05 15:16:07 UTC (rev 120165) +++ PKGBUILD 2014-10-05 15:16:35 UTC (rev 120166) @@ -1,63 +0,0 @@ -# $Id$ -# Maintainer: -# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com> - -pkgbase=gimp-help -pkgver=2.8.2 -pkgrel=2 -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) -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() { - 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 -} - -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=gimp-help-${_locale,,} - - pkgname+=($_pkgname) - eval "package_$_pkgname() { - _package $_lang - }" -done Copied: gimp-help/repos/community-any/PKGBUILD (from rev 120165, gimp-help/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2014-10-05 15:16:35 UTC (rev 120166) @@ -0,0 +1,66 @@ +# $Id$ +# 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=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/${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