summaryrefslogtreecommitdiffstats
path: root/extra/hsqldb-java/Pkgfile
blob: 541d40a67c4abedc26c9049b710c01f347826d4f (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
# Description: HSQLDB Java libraries
# URL: http://hsqldb.org/
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr
# Depends on: ant, jdk, unzip
# Run on: ant,jdk,unzip

name=hsqldb-java
version=1.8.1.1
release=2
source=(http://downloads.sourceforge.net/sourceforge/hsqldb/hsqldb_${version//./_}.zip  )

build() {
  [ -z "${JAVA_HOME}" ] && . /etc/profile
  [ -z "${ANT_HOME}" ] && . /etc/profile.d/apache-ant.sh

  cd ../src/hsqldb/build

  ant jar

  mkdir -p $PKG/usr/share/java
  install -m644 $SRC/hsqldb/lib/hsqldb.jar $PKG/usr/share/java/

  mkdir -p $PKG/usr/share/licenses/$name
  install -m644 $SRC/hsqldb/doc/hsqldb_lic.txt $PKG/usr/share/licenses/$name/

}