summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMuflone2015-06-13 18:58:27 +0200
committerMuflone2015-06-13 18:58:27 +0200
commit284c701ffa9347ecdd0be08f2d1dbc57956cc9d8 (patch)
tree1f086aad852f2ffb57b70450cf059e2e62913244 /PKGBUILD
downloadaur-ultravnc-viewer-i18n.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ae8115fb7db
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+
+pkgbase=ultravnc-viewer-i18n
+pkgname=()
+pkgver=1.1.8.0
+pkgrel=1
+arch=('any')
+url="http://www.uvnc.com"
+license=('GPL')
+depends=("ultravnc-viewer")
+provides=("${pkgbase}")
+conflicts=("${pkgbase}")
+source=("Uvnc_translations-${pkgver}.zip"::"http://support1.uvnc.com/download/${pkgver//./}/translations.zip")
+sha256sums=('77b442c4d911be9e34bd50c6aad7ec50cef8368d8e3d8f59e312385e3896c34d')
+_languages=(
+ 'ca Catalan catalan'
+ 'de German german'
+ 'fr French french'
+ 'ja Japanese japanese'
+ 'pt Portuguese portugueze'
+ 'ru Russian russian'
+ 'es Spanish spanish'
+)
+
+_package() {
+ _filename="$1"
+
+ install -m 755 -d "${pkgdir}/usr/lib/ultravnc-viewer/"
+ install -m 644 "translated_viewers/${_filename}.dll" "${pkgdir}/usr/lib/ultravnc-viewer/vnclang.dll"
+}
+
+for _lang in "${_languages[@]}"
+do
+ _langarray=(${_lang})
+ _pkgname="${pkgbase}-${_langarray[0]}"
+
+ pkgname+=("${_pkgname}")
+ eval "package_${_pkgname}() {
+ pkgdesc='${_langarray[1]} translation for UltraVNC Viewer'
+ _package ${_langarray[2]}
+ }"
+done
+