summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Lichtblau2014-11-28 20:17:14 +0100
committerJaroslav Lichtblau2014-11-28 20:17:14 +0100
commita33b1d5cae087cefaeb400da9898a7201d46ece8 (patch)
treea046f86a93eea28989d6a7a283e5332ca6be0540
downloadaur-a33b1d5cae087cefaeb400da9898a7201d46ece8.tar.gz
Initial PKGBUILD status as of 28.11.2014
-rw-r--r--.AURINFO19
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD49
-rw-r--r--omegat.desktop10
-rw-r--r--omegat.install4
5 files changed, 104 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..cba70182673
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,19 @@
+pkgbase = omegat
+ pkgdesc = Multiplatform CAT tool application, written in Java
+ pkgver = 2.6.3_11
+ pkgrel = 1
+ url = http://www.omegat.org/en/omegat.html
+ install = omegat.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = java-runtime
+ depends = desktop-file-utils
+ conflicts = omegat-beta
+ source = http://downloads.sourceforge.net/omegat/OmegaT_2.6.3_11_Without_JRE.zip
+ source = http://www.omegat.org/resources/icons.zip
+ source = omegat.desktop
+ options = !strip
+
+pkgname = omegat
+
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0a140f6b014
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = omegat
+ pkgdesc = Multiplatform CAT tool application, written in Java
+ pkgver = 2.6.3_11
+ pkgrel = 1
+ url = http://www.omegat.org/en/omegat.html
+ install = omegat.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = java-runtime
+ depends = desktop-file-utils
+ conflicts = omegat-beta
+ options = !strip
+ source = http://downloads.sourceforge.net/omegat/OmegaT_2.6.3_11_Without_JRE.zip
+ source = http://www.omegat.org/resources/icons.zip
+ source = omegat.desktop
+ sha256sums = 1d46864449c36dcf98915117276a4c40547a215a3a0a314e794e79bb8fb30b7e
+ sha256sums = e8b14887f513a505def059903348b5a06c0d016450711cf0f235802213a3dbbb
+ sha256sums = ac480a8244c1a5171b7f2d5892585360067d78e3113ccb45aad6afe7ed69aec5
+
+pkgname = omegat
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4b8fdf72e99
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+
+pkgname=omegat
+pkgver=2.6.3_11
+pkgrel=1
+pkgdesc="Multiplatform CAT tool application, written in Java"
+arch=('i686' 'x86_64')
+url="http://www.omegat.org/en/omegat.html"
+license=('GPL')
+depends=('java-runtime' 'desktop-file-utils')
+conflicts=('omegat-beta')
+install=$pkgname.install
+options=('!strip')
+source=(http://downloads.sourceforge.net/$pkgname/OmegaT_${pkgver}_Without_JRE.zip \
+ http://www.omegat.org/resources/icons.zip \
+ $pkgname.desktop)
+sha256sums=('1d46864449c36dcf98915117276a4c40547a215a3a0a314e794e79bb8fb30b7e'
+ 'e8b14887f513a505def059903348b5a06c0d016450711cf0f235802213a3dbbb'
+ 'ac480a8244c1a5171b7f2d5892585360067d78e3113ccb45aad6afe7ed69aec5')
+
+package() {
+ cd ${srcdir}
+ install -d ${pkgdir}/usr/share/java/$pkgname \
+ ${pkgdir}/usr/bin
+
+ find . -type f -exec chmod 644 "{}" \;
+ mv *.txt ${srcdir}/docs
+ cp -r * ${pkgdir}/usr/share/java/$pkgname
+ chmod 755 ${pkgdir}/usr/share/java/$pkgname/OmegaT
+
+#.desktop file + icon
+ install -D -m644 ${srcdir}/$pkgname.desktop \
+ ${pkgdir}/usr/share/applications/$pkgname.desktop
+ install -D -m644 ${srcdir}/icons/OmegaT_Icon.png \
+ ${pkgdir}/usr/share/pixmaps/$pkgname.png
+
+#more images
+ install -m644 ${pkgdir}/usr/share/java/$pkgname/icons/*.png \
+ ${pkgdir}/usr/share/java/$pkgname/images/
+
+#removing obsolete files
+ rm -rf ${pkgdir}/usr/share/java/$pkgname/{*.{zip,desktop},OmegaT,OmegaT.bat,icons}
+
+#making executable file
+ echo "#!/bin/sh" > ${pkgdir}/usr/bin/$pkgname
+ echo "cd /usr/share/java/$pkgname/" >> ${pkgdir}/usr/bin/$pkgname
+ echo "java -jar OmegaT.jar \$*" >> ${pkgdir}/usr/bin/$pkgname
+ chmod 755 ${pkgdir}/usr/bin/$pkgname
+}
diff --git a/omegat.desktop b/omegat.desktop
new file mode 100644
index 00000000000..8e852f6423b
--- /dev/null
+++ b/omegat.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=OmegaT
+GenericName=OmegaT
+Exec=omegat
+Type=Application
+Comment=Free translation memory application.
+Comment[cs]=Svobodná aplikace překladové paměti.
+Terminal=false
+Categories=Development;Translation;Java;
+Icon=omegat
diff --git a/omegat.install b/omegat.install
new file mode 100644
index 00000000000..de3e0f51077
--- /dev/null
+++ b/omegat.install
@@ -0,0 +1,4 @@
+post_install() {
+ echo "Updating desktop and mime database ..."
+ update-desktop-database -q
+}