# Maintainer: Maksim Kurnosenko pkgname=anylogic-university pkgver=8.8.6 pkgrel=1 pkgdesc="AnyLogic University Edition - for public research in universities" arch=(x86_64) url="https://www.anylogic.com" license=('custom') depends=('glibc') 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" "$pkgname.desktop") sha256sums=('00787cd27a630410adc1e73c1d6d6541a5eef5e0b14c709147a1d226ecbd52f5' 'f0d4b44dd6f53d0aa940b730d1c0dfac77ab3aea4cca6ab185abc7e458a8c135') prepare() { msg2 "Unpacking archive..." tail -n +386 "$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 University Edition contents..." cp -R "$srcdir/anylogic" "$pkgdir/opt" 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" }