Package Details: postgresql-jdbc 9.4.1208-1

Git Clone URL: (read-only)
Package Base: postgresql-jdbc
Description: The official JDBC driver for PostgreSQL. Contains JDBC 4.0 and 4.1 drivers.
Upstream URL:
Licenses: custom: BSD
Submitter: None
Maintainer: Huulivoide
Last Packager: Huulivoide
Votes: 42
Popularity: 0.313317
First Submitted: 2008-01-28 20:22
Last Updated: 2016-03-21 16:28

Latest Comments

loser137 commented on 2016-03-22 08:05

postgresql-jdbc-9.4.1208.jdbc42.jar is downloaded but not installed. You can insert the following line in package() to fix this:
install -m644 "${srcdir}/postgresql-jdbc-${pkgver}.jdbc42.jar" "${pkgdir}/usr/share/java/${pkgname}/"

GLaDER commented on 2016-02-17 10:36

AUR Packages (1): postgresql-jdbc-9.4.1206-2

:: Proceed with installation? [Y/n]

:: Retrieving package(s)...
Already up-to-date.
:: View postgresql-jdbc PKGBUILD? [Y/n]

:: postgresql-jdbc PKGBUILD viewed
:: Checking postgresql-jdbc integrity...
==> ERROR: license should be an array
:: failed to verify postgresql-jdbc integrity

egore911 commented on 2014-12-20 21:09

The following PKGBUILD can be used for the latest driver (9.3_1102) and JDBC 4.1 support:

# Contributor: [Vitaliy Berdinskikh]( aka UR6LAD
# Contributor: [Christoph Brill](

pkgdesc="The official JDBC driver for PostgreSQL. This package contains JDBC3 and JDBC4 drivers."
source=(${pkgver//_/-}.jdbc3.jar \${pkgver//_/-}.jdbc4.jar \${pkgver//_/-}.jdbc41.jar)
noextract=("postgresql-${pkgver//_/-}.jdbc3.jar" "postgresql-${pkgver//_/-}.jdbc4.jar" "postgresql-${pkgver//_/-}.jdbc41.jar")

package() {
mkdir -p $pkgdir/usr/share/java/$pkgname

for f in $srcdir/*; do
install -m644 ${f} $pkgdir/usr/share/java/$pkgname

for i in ${pkgdir}/usr/share/java/${pkgname}/*.jar; do
_filename=${i##*\/}; _version=${pkgver//_/-}
ln -s ${_filename} ${pkgdir}/usr/share/java/${pkgname}/${_filename/${_version}./}


ur6lad commented on 2012-12-01 07:16


giddie commented on 2011-12-12 15:26

Is the arch actually restricted to x86 and x86_64, or should this actually be "any"?

ur6lad commented on 2011-11-20 21:42

I see.

9.1_901-2 (Fix noextract)

schuay commented on 2011-11-19 21:33

Yeah the package contents are now fine, because you install both .jar files manually (without using wildcards).
If you look inside $srcdir/ though after a makepkg, you will see that both .jar's are extracted.

So no, noextract doesn't work with wildcards.

ur6lad commented on 2011-11-19 21:26

No, noextract works: jars are not extracted.

On my workstation:

$ pacman -Ql postgresql-jdbc
postgresql-jdbc /usr/
postgresql-jdbc /usr/share/
postgresql-jdbc /usr/share/java/
postgresql-jdbc /usr/share/java/postgresql-jdbc/
postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-9.1-901.jdbc3.jar
postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-9.1-901.jdbc4.jar
postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-jdbc3.jar
postgresql-jdbc /usr/share/java/postgresql-jdbc/postgresql-jdbc4.jar

schuay commented on 2011-11-19 08:09

Thanks. The


line is still broken though, noextract doesn't accept wildcards. That's the reason a plain cp $srcdir/* didn't work.

ur6lad commented on 2011-11-18 22:29


schuay commented on 2011-11-18 12:41

Please fix this package.
If it hasn't been updated by Nov 22 (= 2 weeks after pcarrier's comment), it will be orphaned.

teekay commented on 2011-11-12 10:55

This package is broken. cp -R as suggested by pcarrier would still result in broken symlinks and needless install of all .class files

I used this:
package() {
mkdir -p $pkgdir/usr/share/java/$pkgname
cd $pkgdir/usr/share/java/$pkgname

cp $srcdir/*.jar .
cp $srcdir/ .
for i in *.jar; do
_filename=${i##*\/}; _version=${pkgver//_/-}
ln -s ${_filename} ${_filename/${_version}./} || return 1


pcarrier commented on 2011-11-08 15:05

cp $srcdir/* $pkgdir/usr/share/java/$pkgname

has to be replaced with:

cp -r $srcdir/* $pkgdir/usr/share/java/$pkgname

ur6lad commented on 2010-11-13 16:20