summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Lichtblau2014-12-28 20:06:00 +0100
committerJaroslav Lichtblau2014-12-28 20:06:00 +0100
commit71bde535a357da981f7df1b3da107e881ade9515 (patch)
tree62dba85634fe6d66543650cd408963d0189a3052
parent3bee31a06ea57a7bf903a97f24125ed9336f3849 (diff)
downloadaur-71bde535a357da981f7df1b3da107e881ade9515.tar.gz
omegat/omegat-beta
removing obsolete files instruction fix
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 8 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 926e9ea72fe..3cfe5a99ae2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = omegat
pkgdesc = Multiplatform CAT tool application, written in Java
pkgver = 3.1.8
- pkgrel = 1
+ pkgrel = 2
url = http://www.omegat.org/en/omegat.html
install = omegat.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index ad2f261875e..d2bfac5d56e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=omegat
pkgver=3.1.8
-pkgrel=1
+pkgrel=2
pkgdesc="Multiplatform CAT tool application, written in Java"
arch=('any')
url="http://www.omegat.org/en/omegat.html"
@@ -46,6 +46,10 @@ package() {
#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
+
+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
}