summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD40
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d2c73d98392
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = anylogic-professional
+ pkgdesc = AnyLogic Professional Edition - for companies and government organizations
+ pkgver = 8.4.0
+ pkgrel = 1
+ url = https://www.anylogic.com
+ arch = x86_64
+ license = custom
+ makedepends = gendesk
+ depends = glibc
+ optdepends = chromium: alternative browser for model animating
+ optdepends = firefox: alternative browser for model animating
+ provides = anylogic
+ conflicts = anylogic
+ options = !strip
+ source = https://files.anylogic.com/anylogic-professional-8.4.0.linux.x86_64.tgz.bin
+ sha256sums = 972d7465017b3beaa22b4ebcdbad38ca6fba4a861634a7db2b3f385e9fe00ba5
+
+pkgname = anylogic-professional
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5141e0f17c1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Maxim Kurnosenko <asusx2@mail.ru>
+
+pkgname=anylogic-professional
+pkgver=8.4.0
+pkgrel=1
+pkgdesc="AnyLogic Professional Edition - for companies and government organizations"
+arch=(x86_64)
+url="https://www.anylogic.com"
+license=('custom')
+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")
+sha256sums=('972d7465017b3beaa22b4ebcdbad38ca6fba4a861634a7db2b3f385e9fe00ba5')
+
+prepare() {
+ msg2 "Unpacking archive..."
+ tail -n +347 "$srcdir/$pkgname-$pkgver.linux.x86_64.tgz.bin" > "$pkgname-$pkgver.linux.x86_64.tgz"
+
+ msg2 "Extracting archive..."
+ tar -xf $pkgname-$pkgver.linux.x86_64.tgz
+}
+
+package() {
+ mkdir -p "$pkgdir/opt"
+
+ msg2 "Copying AnyLogic Professional Edition contents..."
+ cp -R "$srcdir/anylogic" "$pkgdir/opt"
+
+ msg2 "Creating .desktop file..."
+ gendesk -q -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name='AnyLogic Professional Edition' --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"
+
+ install -Dm644 "$srcdir/anylogic/license/Software Licensing Agreement for AnyLogic.txt" "$pkgdir/usr/share/licenses/anylogic/LICENSE"
+}