diff options
author | DX37 | 2019-03-12 19:57:07 +0700 |
---|---|---|
committer | DX37 | 2019-03-12 19:57:07 +0700 |
commit | 8b4fc23671ac763f3df73c76b97d70058aef9304 (patch) | |
tree | 350046036ccb2aa209337584fbf76cb166bf87d6 | |
download | aur-anylogic-professional-8.2.4.tar.gz |
anylogic-professional-8.2.4 pkg repo init
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 54 |
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..29c018cf00e4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = anylogic-professional-8.2.4 + pkgdesc = AnyLogic Professional Edition - for companies and government organizations. Last x86 version + pkgver = 8.2.4 + pkgrel = 1 + url = https://www.anylogic.com + arch = i686 + 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_i686 = https://files.anylogic.com/anylogic-professional-8.2.4.linux.i586.tgz.bin + sha256sums_i686 = 13e3f9b78b9cc8c30e4170f009e6bd266e0370746aaad11825771ba705307dd0 + source_x86_64 = https://files.anylogic.com/anylogic-professional-8.2.4.linux.x86_64.tgz.bin + sha256sums_x86_64 = cb93b0aa73878a75f0a6c4a16484bcc4b40948185e82bd62439e89e5cab3c777 + +pkgname = anylogic-professional-8.2.4 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0f389ab53d4a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Maxim Kurnosenko <asusx2@mail.ru> + +pkgname=anylogic-professional-8.2.4 +pkgver=8.2.4 +pkgrel=1 +pkgdesc="AnyLogic Professional Edition - for companies and government organizations. Last x86 version" +arch=(i686 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_i686=("https://files.anylogic.com/$pkgname.linux.i586.tgz.bin") +source_x86_64=("https://files.anylogic.com/$pkgname.linux.x86_64.tgz.bin") +sha256sums_i686=('13e3f9b78b9cc8c30e4170f009e6bd266e0370746aaad11825771ba705307dd0') +sha256sums_x86_64=('cb93b0aa73878a75f0a6c4a16484bcc4b40948185e82bd62439e89e5cab3c777') + +prepare() { + msg2 "Unpacking archive..." + if [ "$CARCH" == "x86_64" ] + then + tail -n +279 "$srcdir/$pkgname.linux.x86_64.tgz.bin" > "$pkgname.linux.x86_64.tgz" + elif [ "$CARCH" == "i686" ] + then + tail -n +279 "$srcdir/$pkgname.linux.i586.tgz.bin" > "$pkgname.linux.i586.tgz" + fi + + msg2 "Extracting archive..." + if [ "$CARCH" == "x86_64" ] + then + tar -xf $pkgname.linux.x86_64.tgz + elif [ "$CARCH" == "i686" ] + then + tar -xf $pkgname.linux.i586.tgz + fi +} + +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" +} |