summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Lichtblau2014-11-28 20:17:14 +0100
committerJaroslav Lichtblau2014-11-28 20:17:14 +0100
commit41da95f6e94df15b62db7e3fcfcce6b481e57a38 (patch)
treeaceab9411670ec2e0ab8ae04c3627c113a4781be
downloadaur-41da95f6e94df15b62db7e3fcfcce6b481e57a38.tar.gz
Initial PKGBUILD status as of 28.11.2014
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD64
-rw-r--r--transolution.desktop10
-rw-r--r--transolution.install9
4 files changed, 104 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..17a7d5db1a3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = transolution
+ pkgdesc = Computer Aided Translation (CAT) suite supporting the XLIFF standard
+ pkgver = 0_4b8
+ pkgrel = 1
+ url = http://sourceforge.net/projects/eviltrans/
+ install = transolution.install
+ arch = any
+ license = GPL
+ depends = python2
+ depends = pygtk
+ depends = desktop-file-utils
+ depends = hicolor-icon-theme
+ depends = xdg-utils
+ optdepends = 4suite
+ source = transolution.zip::http://bitbucket.org/fredrik_corneliusson/transolution/get/d91da181993c.zip
+ source = transolution.desktop
+ sha256sums = f8bb8a45d79212d649d619991eb5e3800142a79f68e73e3a20dafa251d905d11
+ sha256sums = 672bf984c3d12b3bf967d3980ea591c22c710f4a5bb80ffe33753f9d904238d5
+
+pkgname = transolution
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..94eae887dca
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,64 @@
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+
+pkgname=transolution
+pkgver=0_4b8
+pkgrel=1
+pkgdesc="Computer Aided Translation (CAT) suite supporting the XLIFF standard"
+arch=('any')
+url="http://sourceforge.net/projects/eviltrans/"
+license=('GPL')
+depends=('python2' 'pygtk' 'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils')
+optdepends=('4suite')
+install=$pkgname.install
+source=($pkgname.zip::http://bitbucket.org/fredrik_corneliusson/$pkgname/get/d91da181993c.zip \
+ $pkgname.desktop)
+sha256sums=('f8bb8a45d79212d649d619991eb5e3800142a79f68e73e3a20dafa251d905d11'
+ '672bf984c3d12b3bf967d3980ea591c22c710f4a5bb80ffe33753f9d904238d5')
+
+package() {
+ cd ${srcdir}/fredrik_corneliusson-transolution-*
+
+ install -d ${pkgdir}/usr/share/$pkgname \
+ ${pkgdir}/usr/bin \
+ ${pkgdir}/usr/share/$pkgname/filters
+
+ cp -r * ${pkgdir}/usr/share/$pkgname
+ rm ${pkgdir}/usr/share/$pkgname/*{bat,txt,ico,png}
+ find ${pkgdir}/usr/share/$pkgname/$pkgname -type f -exec chmod 644 "{}" \;
+ install -D -m644 readme.txt ${pkgdir}/usr/share/$pkgname/README
+
+#links to run files
+ for i in *.py
+ do ln -s /usr/share/$pkgname/$i ${pkgdir}/usr/bin/$i
+ done
+
+#icons and .desktop file
+ install -D -m644 icon_16x16.png \
+ ${pkgdir}/usr/share/icons/hicolor/16x16/apps/$pkgname.png
+ install -D -m644 icon_32x32.png \
+ ${pkgdir}/usr/share/icons/hicolor/32x32/apps/$pkgname.png
+ install -D -m644 ${srcdir}/$pkgname.desktop \
+ ${pkgdir}/usr/share/applications/$pkgname.desktop
+
+# python2 fix
+ cd ${pkgdir}/usr/share/transolution
+ for file in $(find . -name '*.py' -print); do
+ sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
+ sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
+ done
+
+#make executable
+ cd ${pkgdir}/usr/share/$pkgname/
+ for i in *.py
+ do chmod +x $i
+ done
+
+#links to filter files for easy use
+ cd ${pkgdir}/usr/share/$pkgname/$pkgname/filters/filter_settings
+ for i in *.ini
+ do ln -s /usr/share/$pkgname/$pkgname/filters/filter_settings/$i \
+ ${pkgdir}/usr/share/$pkgname/filters/$i
+ done
+
+ rm ${pkgdir}/usr/{bin/win_setup.py,share/$pkgname/win_setup.py}
+}
diff --git a/transolution.desktop b/transolution.desktop
new file mode 100644
index 00000000000..51ed3ac6d30
--- /dev/null
+++ b/transolution.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Transolution
+GenericName=xliffeditor
+Exec=xliffeditor.py
+Type=Application
+Comment=An Open Source Translation Suite
+Comment[cs]=Open source CAT program
+Terminal=false
+Categories=Development;Translation;
+Icon=transolution
diff --git a/transolution.install b/transolution.install
new file mode 100644
index 00000000000..8f02f042bc4
--- /dev/null
+++ b/transolution.install
@@ -0,0 +1,9 @@
+post_install() {
+ echo "Updating desktop and mime database ..."
+ update-desktop-database -q
+ which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true
+}
+
+post_remove() {
+ post_install $1
+}