blob: 4245b48665bdf048adbfe2228f1fb2524675f379 (
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
|
# Maintainer: Jonas Hvid <mail@johv.dk>
# Contributor: Alfredo Beaumont <alfredo.beaumont@gmail.com>
pkgname='picat'
pkgver='3.7'
pkgrel=1
pkgdesc='A simple, and yet powerful, logic-based multi-paradigm programming language aimed for general-purpose applications.'
arch=('x86_64')
groups=()
depends=(glibc gcc-libs)
optdepends=('coin-or-cbc: CBC MIP support'
'cvc4: CVC4 SMT support'
'glpk: GLPK MIP support'
'gurobi: Gurobi MIP support'
'z3: Z3 SMT support')
url='http://picat-lang.org/'
license=('MPL-2.0')
_pkgver=$(echo ${pkgver} | sed 's/\.//;s/#//')
source=("http://picat-lang.org/download/${pkgname}${pkgver/\./}_src.tar.gz")
b2sums=('fb455c018d6ac76240f1a4ff5b8676b0eefe5d0ae714c7b8e790fa22d2832b9e56dcc6af888c817361346e210dd50b673f48ea09aee462f0903ebc2598a702bd')
build() {
cd "$srcdir/Picat/emu"
echo 'LFLAGS += -Wl,-z,relro,-z,now,-z,shstk' >> Makefile.linux64
make -f Makefile.linux64
}
package() {
install -m644 "$srcdir/Picat/LICENSE" -Dt "$pkgdir/usr/share/licenses/$pkgname"
install -m755 "$srcdir/Picat/emu/picat" -Dt "$pkgdir/usr/bin"
install -m644 "$srcdir/Picat/lib/"* -Dt "$pkgdir/usr/lib/$pkgname"
install -m644 "$srcdir/Picat/doc/"* -Dt "$pkgdir/usr/share/doc/$pkgname"
}
|