# Template file for 'hsqldb1.8.0'
#
# libreoffice uses this version
pkgname=hsqldb1.8.0
version=1.8.0.10
revision=1
hostmakedepends="openjdk8 apache-ant"
depends="virtual?java-runtime"
short_desc="HyperSQL Database Engine - v1.8.0"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="BSD-4-Clause"
homepage="https://hsqldb.org/"
distfiles="${SOURCEFORGE_SITE}/hsqldb/hsqldb_${version//./_}.zip"
checksum=d30b13f4ba2e3b6a2d4f020c0dee0a9fb9fc6fbcc2d561f36b78da4bf3802370

do_build() {
	source /etc/profile.d/jdk.sh
	source /etc/profile.d/apache-ant.sh
	rm -f lib/hsqldb*
	cd build
	ant jar jarutil
}

do_install() {
	vinstall lib/hsqldb.jar 644 usr/share/java hsqldb-1.8.0.jar
	vlicense doc/hsqldb_lic.txt
}
