summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Lichtblau2019-10-29 21:12:02 +0100
committerJaroslav Lichtblau2019-10-29 21:12:02 +0100
commit21c7f52049d8e70f55ebc1a44ae8cc981cf53d9b (patch)
treec54d8d32a4adf76c3fe1e40b4ea17b95d8813de0
parentbb34ae8036640275c045c2743773c9f57e3cc40f (diff)
downloadaur-21c7f52049d8e70f55ebc1a44ae8cc981cf53d9b.tar.gz
omegat-4.3.0-1
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD41
-rwxr-xr-xomegat.sh3
3 files changed, 24 insertions, 32 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 468a2c3bd8a..1b56afacd46 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,20 @@
-# Generated by mksrcinfo v8
-# Wed May 8 18:49:23 UTC 2019
pkgbase = omegat
pkgdesc = Multiplatform CAT tool application, written in Java
- pkgver = 3.6.0_11
+ pkgver = 4.3.0
pkgrel = 1
- url = http://www.omegat.org/en/omegat.html
+ url = https://www.omegat.org/en/
arch = any
license = GPL
depends = java-runtime
depends = desktop-file-utils
conflicts = omegat-beta
options = !strip
- source = http://downloads.sourceforge.net/omegat/OmegaT_3.6.0_11_Without_JRE.zip
+ source = http://downloads.sourceforge.net/omegat/OmegaT_4.3.0_Without_JRE.zip
source = omegat.desktop
- sha256sums = 9c19cb614f31f6db733ebc7058fa599a64b4da3d9308ded1f59feaac3299fd0d
+ source = omegat.sh
+ sha256sums = c64b99b3e07368acd6667948b643f6e66647f9872378fc773821786646b32e43
sha256sums = ac480a8244c1a5171b7f2d5892585360067d78e3113ccb45aad6afe7ed69aec5
+ sha256sums = 8a6893d382d37c7a12f81370920ca362a8b36e81cec4121942f58613d18b5ade
pkgname = omegat
diff --git a/PKGBUILD b/PKGBUILD
index 00230e6e246..a374a082791 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,48 +1,37 @@
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
pkgname=omegat
-pkgver=3.6.0_11
+pkgver=4.3.0
pkgrel=1
pkgdesc="Multiplatform CAT tool application, written in Java"
arch=('any')
-url="http://www.omegat.org/en/omegat.html"
+url="https://www.omegat.org/en/"
license=('GPL')
depends=('java-runtime' 'desktop-file-utils')
conflicts=('omegat-beta')
options=('!strip')
source=(http://downloads.sourceforge.net/$pkgname/OmegaT_${pkgver}_Without_JRE.zip
- $pkgname.desktop)
-sha256sums=('9c19cb614f31f6db733ebc7058fa599a64b4da3d9308ded1f59feaac3299fd0d'
- 'ac480a8244c1a5171b7f2d5892585360067d78e3113ccb45aad6afe7ed69aec5')
+ $pkgname.desktop $pkgname.sh)
+sha256sums=('c64b99b3e07368acd6667948b643f6e66647f9872378fc773821786646b32e43'
+ 'ac480a8244c1a5171b7f2d5892585360067d78e3113ccb45aad6afe7ed69aec5'
+ '8a6893d382d37c7a12f81370920ca362a8b36e81cec4121942f58613d18b5ade')
package() {
- cd "${srcdir}"
- install -d "${pkgdir}"/usr/share/java/$pkgname \
- "${pkgdir}"/usr/bin
+ cd "${srcdir}"/OmegaT_${pkgver}_Without_JRE
- find . -type f -exec chmod 644 "{}" \;
- mv *.txt "${srcdir}"/docs
- cp -r * "${pkgdir}"/usr/share/java/$pkgname
+ mv *.txt docs/
+ install -d "${pkgdir}"/usr/{bin,share/java/${pkgname}}
+ cp -r * "${pkgdir}"/usr/share/java/${pkgname}
#.desktop file + icon
- install -Dm644 "${srcdir}"/$pkgname.desktop \
- "${pkgdir}"/usr/share/applications/$pkgname.desktop
+ install -Dm644 "${srcdir}"/${pkgname}.desktop \
+ "${pkgdir}"/usr/share/applications/${pkgname}.desktop
install -Dm644 images/OmegaT.svg \
- "${pkgdir}"/usr/share/pixmaps/${_realname}.svg
+ "${pkgdir}"/usr/share/pixmaps/${pkgname}.svg
#executable file
- echo "#!/bin/sh" > "${pkgdir}"/usr/bin/$pkgname
- echo "cd /usr/share/java/$pkgname/" >> "${pkgdir}"/usr/bin/$pkgname
- echo "java -jar -Xmx512M OmegaT.jar \$*" >> "${pkgdir}"/usr/bin/$pkgname
- chmod 755 "${pkgdir}"/usr/bin/$pkgname
+ install -Dm755 "${srcdir}"/${pkgname}.sh "${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}
-
-if [[ "$CARCH" == "x86_64" ]]; then
- rm "${pkgdir}"/usr/share/java/$pkgname/native/libhunspell-linux32.so
-else
- rm "${pkgdir}"/usr/share/java/$pkgname/native/libhunspell-linux64.so
-fi
+ rm -rf "${pkgdir}"/usr/share/java/${pkgname}/{*.{zip,desktop,sh,kaptn},OmegaT,OmegaT.bat}
}
diff --git a/omegat.sh b/omegat.sh
new file mode 100755
index 00000000000..2d59053d7b1
--- /dev/null
+++ b/omegat.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/share/java/omegat/
+java -jar -Xmx1024M OmegaT.jar "$@"