gtk/bluegriffon-i18n/PKGBUILD
2018-01-07 17:54:09 +01:00

60 lines
1.5 KiB
Bash

# Arch Maintainer: Muflone http://www.muflone.com/contacts/english/
pkgbase=bluegriffon-i18n
pkgname=()
pkgver=3.0.1
pkgrel=2
pkgdesc="The next-generation Web Editor based on the rendering engine of Firefox"
arch=('any')
url="http://bluegriffon.org/"
license=('MPL' 'GPL' 'LGPL')
depends=('bluegriffon')
groups=('bluegriffon')
provides=('bluegriffon-i18n')
source=("http://bluegriffon.org/freshmeat/${pkgver}/bluegriffon-${pkgver}.Ubuntu16.04-${CARCH}.tar.bz2")
sha256sums=('eafd38c1f1fbec2a50cf7e3904246505704dfa0fe93beaf33f6984018d3b5243')
install="${pkgbase}.install"
_languages=(
'cs "Czech"'
'de "German"'
'es-ES "Spanish (España)"'
'fi "Finnish"'
'fr "French"'
'gl "Galego (España)"'
'he "Hebrew"'
'hu "Hungarian"'
'it "Italian"'
'ja "Japanese"'
'ko "Korean"'
'nl "Dutch"'
'pl "Polish"'
'ru "Russian"'
'sl "Slovenian"'
'sr "Russian"'
'sv-SE "Svenska"'
'zh-CN "Chinese Simplified"'
'zh-TW "Traditional Chinese"'
)
for _lang in "${_languages[@]}"
do
_locale="${_lang%% *}"
_pkgname="${pkgbase}-${_locale,,}"
pkgname+=("${_pkgname}")
eval "package_${_pkgname}() {
_package ${_lang}
}"
done
_package() {
_locale="$1"
_language="$2"
pkgdesc="${_language} language pack for Bluegriffon"
cd "bluegriffon/distribution/extensions"
install -m 755 -d "${pkgdir}/usr/lib/bluegriffon/distribution/extensions"
install -m 644 -t "${pkgdir}/usr/lib/bluegriffon/distribution/extensions" "langpack-${_locale}@bluegriffon.org.xpi"
}