blob: 8ff9c4516ae9ed234e0b047c59a315343d2ee45d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Dimitris Pappas <mitsakosgr at gmail dot com>
# Contributor: Fabio Tardivo <x95a31x at gmail dot com>
pkgname=minizinc-ide
pkgver=2.8.7
pkgrel=1
pkgdesc="Simple IDE for writing and running MiniZinc models"
arch=(x86_64)
url=http://www.minizinc.org/ide/
license=(MPL2)
provides=(minizinc)
options=(!strip)
install=$pkgname.install
conflicts=(
libminizinc
minizinc-ide-edge
)
source=(
minizinc-ide.desktop
https://raw.githubusercontent.com/MiniZinc/MiniZincIDE/master/resources/icon.png
https://github.com/MiniZinc/MiniZincIDE/releases/download/$pkgver/MiniZincIDE-$pkgver-bundle-linux-$arch.tgz
)
# Workaround for https://github.com/MiniZinc/MiniZincIDE/issues/90
# implemented in .desktop file, by adding it as environment variable
package() {
# Create MiniZinc directory
mkdir -p $pkgdir/opt/$pkgname
# Copy MiniZinc files
cp -r $srcdir/MiniZincIDE-$pkgver-bundle-linux-$arch/* $pkgdir/opt/$pkgname
# Copy MiniZinc launcher
mkdir -p $pkgdir/usr/share/applications
mkdir -p $pkgdir/opt/$pkgname/resources
cp $srcdir/icon.png $pkgdir/opt/$pkgname/resources/icon.png
cp $srcdir/minizinc-ide.desktop $pkgdir/usr/share/applications/minizinc-ide.desktop
}
sha256sums=('9928044890140a0f0e6f17df8b5f11acfea0b4fd7a8f494309a38b37bb7d71c2'
'eaa69a6d1b8a3e307d1b400b74273995abb914fbe1246c65fc9b3955b2094023'
'3d2dbe6572dc11a791ee27f46aca864561d9e491225bdf1eac22762c866cb1bc')
|