void-packages/srcpkgs/sugar/template

29 lines
729 B
Bash

# Template file for 'sugar'
pkgname=sugar
version=2.3.2
revision=2
build_wrksrc=bin
build_style=gnu-makefile
make_build_args="javac"
hostmakedepends="unzip openjdk8"
depends="virtual?java-runtime"
short_desc="SAT-based Constraint Solver"
maintainer="Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>"
license="BSD-3-Clause"
homepage="https://cspsat.gitlab.io/sugar/"
distfiles="https://cspsat.gitlab.io/sugar/package/sugar-v${version//./-}.zip"
checksum=50cbd291ab328be4d331c8fcfd4de8b6a26f3f7b8f31094ebf55218a4f647b40
post_build() {
vsed -i 's|/usr/local/lib|/usr/lib|' sugar
}
do_install() {
vbin sugar
vinstall sugar-v${version//./-}.jar 0644 /usr/lib/sugar
}
post_install() {
vlicense ../docs/LICENSE.txt LICENSE
}