blob: ea59531c1dc08557bd75351d244731661d948d25 (
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
|
# Maintainer: Laura Demkowicz-Duffy <dev at demkowiczduffy.co.uk>
pkgname=savilerow-bin
_pkgname=savilerow
pkgver=1.10.1
pkgrel=1
pkgdesc="A modelling assistant for Constraint Programming"
arch=('x86_64')
url="https://www-users.york.ac.uk/peter.nightingale/savilerow"
license=('GPL-3.0-or-later AND MIT AND GPL-2.0-or-later')
depends=(java-runtime bash)
provides=(savilerow)
source=("$pkgname-$pkgver.tar.gz::$url/$_pkgname-$pkgver-linux.tgz"
"savilerow.sh")
sha256sums=('9cf16ed296824a9f222743fa30b056b00938c58e51c6db449d6d7444f41fdcc5'
'fac0443361d1aac54d72f7773707854fe598da654077ff36096cb6d8fc951cb1')
build() {
cd $_pkgname-$pkgver-linux
strip bin/*
}
package() {
install -Dm0755 "savilerow.sh" "$pkgdir/usr/bin/savilerow"
cd $_pkgname-$pkgver-linux
install -Dm0755 $_pkgname.jar "$pkgdir/usr/share/java/$_pkgname.jar"
install -Dm0755 -t "$pkgdir/usr/lib/$_pkgname/bin" \
bin/fzn-chuffed bin/kissat bin/minion bin/symmetry_detect
install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname" "savilerow-manual.pdf"
ln -sr "$pkgdir/usr/share/doc/$pkgname" "$pkgdir/usr/share/doc/$_pkgname"
_licensedir="$pkgdir/usr/share/licenses/$pkgname"
install -Dm 0644 COPYING "$_licensedir/COPYING"
install -Dm 0644 LICENSES/chuffed/LICENSE "$_licensedir/vendored/chuffed.txt"
install -Dm 0644 LICENSES/kissat/LICENSE "$_licensedir/vendored/kissat.txt"
install -Dm 0644 LICENSES/minion/LICENSE.txt "$_licensedir/vendored/minion.txt"
ln -sr "$_licensedir" "$pkgdir/usr/share/licenses/$_pkgname"
}
|