summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDX372019-03-12 11:58:11 +0700
committerDX372019-03-12 11:58:11 +0700
commit0d56fc2ad0554b01cf35850efcfcb90165f6f2b4 (patch)
treecc50d59af2c27d62d0343c01db7b0d7b33e65622
parent553ebd4a256c465712f7bbc3f0310aefeb0dae77 (diff)
downloadaur-0d56fc2ad0554b01cf35850efcfcb90165f6f2b4.tar.gz
changes
- add provides/conflicts for future anylogic packages - use only .desktop file for launching program
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD13
2 files changed, 9 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cdec8e0ae0b5..19da56d9414b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = anylogic-ple
- pkgdesc = AnyLogic Personal Learning Edition - for beginners and students
+ pkgdesc = AnyLogic PLE - for beginners and students
pkgver = 8.4.0
- pkgrel = 3
+ pkgrel = 4
url = https://www.anylogic.com
arch = x86_64
license = custom
@@ -9,7 +9,8 @@ pkgbase = anylogic-ple
depends = glibc
optdepends = chromium: alternative browser for model animating
optdepends = firefox: alternative browser for model animating
- noextract = $pkgname-$pkgver.linux.x86_64.tgz.bin
+ provides = anylogic
+ conflicts = anylogic
options = !strip
source = https://files.anylogic.com/anylogic-ple-8.4.0.linux.x86_64.tgz.bin
sha256sums = 4029bc645995ab6b81b234334f4cb00fbf8608fae05d0cd1fc91dfd701358b87
diff --git a/PKGBUILD b/PKGBUILD
index 4eb3ee15d9e5..f66117f31ca2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
pkgname=anylogic-ple
pkgver=8.4.0
-pkgrel=3
-pkgdesc="AnyLogic Personal Learning Edition - for beginners and students"
+pkgrel=4
+pkgdesc="AnyLogic PLE - for beginners and students"
arch=(x86_64)
url="https://www.anylogic.com"
license=('custom')
@@ -11,9 +11,10 @@ depends=('glibc')
makedepends=('gendesk')
optdepends=('chromium: alternative browser for model animating'
'firefox: alternative browser for model animating')
+provides=('anylogic')
+conflicts=('anylogic')
options=(!strip)
source=("https://files.anylogic.com/$pkgname-$pkgver.linux.x86_64.tgz.bin")
-noextract=('$pkgname-$pkgver.linux.x86_64.tgz.bin')
sha256sums=('4029bc645995ab6b81b234334f4cb00fbf8608fae05d0cd1fc91dfd701358b87')
prepare() {
@@ -31,13 +32,9 @@ package() {
cp -R "$srcdir/anylogic" "$pkgdir/opt"
msg2 "Creating .desktop file..."
- gendesk -q -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name='AnyLogic PLE' --exec='anylogic'
+ gendesk -q -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name='AnyLogic PLE' --exec='env SWT_GTK3=0 UBUNTU_MENUPROXY= /opt/anylogic/anylogic'
install -Dm644 "$srcdir/anylogic/icon.xpm" "$pkgdir/usr/share/pixmaps/$pkgname.xpm"
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
- msg2 "Creating patched start script..."
- install -Dm755 "$srcdir/anylogic/start-anylogic.sh" "$pkgdir/usr/bin/anylogic"
- sed "s#./anylogic#/opt/anylogic/anylogic#" -i "$pkgdir/usr/bin/anylogic"
-
install -Dm644 "$srcdir/anylogic/license/Software Licensing Agreement for AnyLogic.txt" "$pkgdir/usr/share/licenses/anylogic/LICENSE"
}