summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorptrv2015-11-01 15:35:05 +0100
committerptrv2015-11-01 15:35:05 +0100
commitb338212ce40ff8780550a15600f4850b92ec9c49 (patch)
tree28a8db53aebb1bda29b75650885d05c288c7b977
downloadaur-b338212ce40ff8780550a15600f4850b92ec9c49.tar.gz
Initial import and update to version 1.4.190
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD32
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5f90b3de740
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = h2
+ pkgdesc = Java SQL database engine.
+ pkgver = 1.4.190
+ pkgrel = 1
+ url = http://www.h2database.com
+ arch = any
+ license = MPL
+ license = EPL
+ depends = java-runtime>=6
+ depends = bash
+ source = http://www.h2database.com/h2-2015-10-11.zip
+ md5sums = fa103a4ef6db6a4523054c9fed5cec2c
+
+pkgname = h2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..52f07e31e88
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Source: https://github.com/nicoulaj/archlinux-packages
+pkgname=h2
+pkgver=1.4.190
+_releasever=2015-10-11
+pkgrel=1
+pkgdesc="Java SQL database engine."
+arch=(any)
+url="http://www.h2database.com"
+license=(MPL EPL)
+depends=('java-runtime>=6' 'bash')
+source=("http://www.h2database.com/h2-${_releasever}.zip")
+md5sums=('fa103a4ef6db6a4523054c9fed5cec2c')
+
+build() {
+ msg2 "Generate executable script..."
+ cat > "${srcdir}/${pkgname}-console.sh" << EOF
+#!/bin/sh
+"\$JAVA_HOME/bin/java" -cp "/usr/share/java/${pkgname}/${pkgname}.jar:\$H2DRIVERS:\$CLASSPATH" org.h2.tools.Console "\$@"
+EOF
+}
+
+package() {
+ msg2 "Install Java livraries in /usr/share/java/${pkgname}..."
+ install -Dm755 "${srcdir}/${pkgname}/bin/${pkgname}-${pkgver}.jar" "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
+
+ msg2 "Install an executable at /usr/bin/${pkgname}..."
+ install -Dm755 "${srcdir}/${pkgname}-console.sh" "${pkgdir}/usr/bin/${pkgname}-console"
+
+ msg2 "Install documentation resources in /usr/share/doc/${pkgname}..."
+ install -dm755 "${pkgdir}/usr/share/doc/${pkgname}"
+ cp -a "${srcdir}"/${pkgname}/docs/* "${pkgdir}/usr/share/doc/${pkgname}"
+}