summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJaroslav Lichtblau2014-12-28 20:06:00 +0100
committerJaroslav Lichtblau2014-12-28 20:06:00 +0100
commit71bde535a357da981f7df1b3da107e881ade9515 (patch)
tree62dba85634fe6d66543650cd408963d0189a3052 /PKGBUILD
parent3bee31a06ea57a7bf903a97f24125ed9336f3849 (diff)
downloadaur-71bde535a357da981f7df1b3da107e881ade9515.tar.gz
omegat/omegat-beta
removing obsolete files instruction fix
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 7 insertions, 3 deletions
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
}