summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Lichtblau2014-12-18 16:34:45 +0100
committerJaroslav Lichtblau2014-12-18 16:34:45 +0100
commit3bee31a06ea57a7bf903a97f24125ed9336f3849 (patch)
tree27b9001f2306323345a564d75f336b50ebe39671
parent1a50797d70c172dc9cb4c4caa7edcd0047e77d10 (diff)
downloadaur-3bee31a06ea57a7bf903a97f24125ed9336f3849.tar.gz
omegat-3.1.8-1
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD28
2 files changed, 19 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0a140f6b014..926e9ea72fe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,19 @@
pkgbase = omegat
pkgdesc = Multiplatform CAT tool application, written in Java
- pkgver = 2.6.3_11
+ pkgver = 3.1.8
pkgrel = 1
url = http://www.omegat.org/en/omegat.html
install = omegat.install
- arch = i686
- arch = x86_64
+ arch = any
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://downloads.sourceforge.net/omegat/OmegaT_3.1.8_Without_JRE.zip
source = http://www.omegat.org/resources/icons.zip
source = omegat.desktop
- sha256sums = 1d46864449c36dcf98915117276a4c40547a215a3a0a314e794e79bb8fb30b7e
+ sha256sums = 15d4035acbf1538611de380dde7f54bd9417b374997bdd5d27184b97de71c933
sha256sums = e8b14887f513a505def059903348b5a06c0d016450711cf0f235802213a3dbbb
sha256sums = ac480a8244c1a5171b7f2d5892585360067d78e3113ccb45aad6afe7ed69aec5
diff --git a/PKGBUILD b/PKGBUILD
index 64d0b59ba4c..ad2f261875e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,20 @@
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
pkgname=omegat
-pkgver=2.6.3_11
+pkgver=3.1.8
pkgrel=1
pkgdesc="Multiplatform CAT tool application, written in Java"
-arch=('i686' 'x86_64')
+arch=('any')
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 \
+source=(http://downloads.sourceforge.net/$pkgname/OmegaT_${pkgver}_Without_JRE.zip
+ http://www.omegat.org/resources/icons.zip
$pkgname.desktop)
-sha256sums=('1d46864449c36dcf98915117276a4c40547a215a3a0a314e794e79bb8fb30b7e'
+sha256sums=('15d4035acbf1538611de380dde7f54bd9417b374997bdd5d27184b97de71c933'
'e8b14887f513a505def059903348b5a06c0d016450711cf0f235802213a3dbbb'
'ac480a8244c1a5171b7f2d5892585360067d78e3113ccb45aad6afe7ed69aec5')
@@ -26,24 +26,26 @@ package() {
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 \
+ install -Dm644 "${srcdir}"/$pkgname.desktop \
"${pkgdir}"/usr/share/applications/$pkgname.desktop
- install -D -m644 "${srcdir}"/icons/OmegaT_Icon.png \
+ install -Dm644 "${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
+#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
+ echo "java -jar -Xmx512M OmegaT.jar \$*" >> "${pkgdir}"/usr/bin/$pkgname
chmod 755 "${pkgdir}"/usr/bin/$pkgname
+
+#removing obsolete files
+ rm -rf "${pkgdir}"/usr/share/java/$pkgname/{*.{zip,desktop,sh,kaptn},OmegaT,OmegaT.bat,icons}
+ rm "${pkgdir}"/usr/share/java/$pkgname/native/*.{dll,dylib}
+[[ "$CARCH" = "i686" ]] && rm "${pkgdir}"/usr/share/java/$pkgname/native/libhunspell-linux64.so
+[[ "$CARCH" = "x86_64" ]] && rm "${pkgdir}"/usr/share/java/$pkgname/native/libhunspell-linux32.so
}