blob: 619dc2d4bc2a162216e1918e23e0a2f1647b84fe (
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
35
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=java-postgresql-jdbc
_pkgname=postgresql-jdbc
pkgver=9.4.1210
pkgrel=0
pkgdesc="Java JDBC 4.2 (JRE 8+) driver for PostgreSQL database"
url="https://jdbc.postgresql.org"
arch="noarch"
license="BSD-3"
depends=""
makedepends="openjdk8 maven"
source="$pkgname-$pkgver.tar.gz::https://github.com/pgjdbc/pgjdbc/archive/REL$pkgver.tar.gz"
builddir="$srcdir/pgjdbc-REL$pkgver/pgjdbc"
build() {
cd "$builddir"
# Note: Maven downloads quite many dependencies from Maven Central, but
# these are used only for building, not bundled to the final JAR.
export JAVA_HOME="/usr/lib/jvm/default-jvm"
mvn package -DskipTests -Dmaven.repo.local="$builddir/.m2"
}
package() {
cd "$builddir"
install -m 644 -D target/postgresql-$pkgver.jar \
"$pkgdir"/usr/share/java/$_pkgname-$pkgver.jar || return 1
ln -s $_pkgname-$pkgver.jar "$pkgdir"/usr/share/java/$_pkgname.jar
}
md5sums="b9eab23ff8ca60ce96492b9ca6c8b435 java-postgresql-jdbc-9.4.1210.tar.gz"
sha256sums="664641384baaaff45b2392229245cd1d79a9c012ea2ff38343fead28136c9b76 java-postgresql-jdbc-9.4.1210.tar.gz"
sha512sums="6711cd52e9f2b7dac3865d19868409f9034af7e3567988a92fe84b7db59f5c9a57e4f81e8fee305549862fb0c6b583ee52093a13ff5bf811776bba6cb14f72f4 java-postgresql-jdbc-9.4.1210.tar.gz"
|