Advertisement
Guest User

PKGBUILD postgresql-jdbc 42.2.24-1

a guest
Oct 6th, 2021
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. #Mainteiner: Jesse Jaara <gmail.com: jesse.jaara>
  2.  
  3. pkgname=postgresql-jdbc
  4. pkgver=42.2.24
  5. pkgrel=1
  6. pkgdesc="The official JDBC driver for PostgreSQL. Contains JDBC 4.0, 4.1 & 4.2 drivers."
  7. arch=('any')
  8. url="http://jdbc.postgresql.org/"
  9. license=("Custom: BSD")
  10. depends=('java-runtime')
  11. source=(LICENSE
  12. postgresql-jdbc-${pkgver}.jdbc4.jar::https://search.maven.org/remotecontent?filepath=org/postgresql/postgresql/${pkgver}.jre6/postgresql-${pkgver}.jre6.jar
  13. postgresql-jdbc-${pkgver}.jdbc41.jar::https://search.maven.org/remotecontent?filepath=org/postgresql/postgresql/${pkgver}.jre7/postgresql-${pkgver}.jre7.jar
  14. postgresql-jdbc-${pkgver}.jdbc42.jar::https://search.maven.org/remotecontent?filepath=org/postgresql/postgresql/${pkgver}/postgresql-${pkgver}.jar)
  15. sha256sums=('b6728bf7a595b7b7c4757238d1fea0fe4026881f4ed745889840bcd7fe2942d8'
  16. '547e3e9b5fc78203817bfc554f2a36adb0acd5493135edc574c6fbb8f478a67a'
  17. '59d9fe5a7448d27b8c56ec5e787df5a19b135efbc36f43389a5c138c447b0a35'
  18. '83ff945bb4f5dac8ea31b7bd5324433f5593dbbcb58b63763232bbef186d4772')
  19.  
  20. noextract=(postgresql-jdbc-${pkgver}.jdbc4.jar
  21. postgresql-jdbc-${pkgver}.jdbc41.jar
  22. postgresql-jdbc-${pkgver}.jdbc42.jar)
  23.  
  24. package() {
  25. install -d -m755 "${pkgdir}/usr/share/java/${pkgname}"
  26. install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
  27.  
  28. install -m644 "${srcdir}/postgresql-jdbc-${pkgver}.jdbc4.jar" "${pkgdir}/usr/share/java/${pkgname}/"
  29. install -m644 "${srcdir}/postgresql-jdbc-${pkgver}.jdbc41.jar" "${pkgdir}/usr/share/java/${pkgname}/"
  30. install -m644 "${srcdir}/postgresql-jdbc-${pkgver}.jdbc42.jar" "${pkgdir}/usr/share/java/${pkgname}/"
  31.  
  32. ln -s postgresql-jdbc-${pkgver}.jdbc4.jar "${pkgdir}/usr/share/java/${pkgname}/postgresql-jdbc4.jar"
  33. ln -s postgresql-jdbc-${pkgver}.jdbc41.jar "${pkgdir}/usr/share/java/${pkgname}/postgresql-jdbc41.jar"
  34. ln -s postgresql-jdbc-${pkgver}.jdbc42.jar "${pkgdir}/usr/share/java/${pkgname}/postgresql-jdbc42.jar"
  35.  
  36. ln -s postgresql-jdbc-${pkgver}.jdbc4.jar "${pkgdir}/usr/share/java/${pkgname}/postgresql-${pkgver}.jre6.jar"
  37. ln -s postgresql-jdbc-${pkgver}.jdbc41.jar "${pkgdir}/usr/share/java/${pkgname}/postgresql-${pkgver}.jre7.jar"
  38. ln -s postgresql-jdbc-${pkgver}.jdbc42.jar "${pkgdir}/usr/share/java/${pkgname}/postgresql-${pkgver}.jar"
  39.  
  40. install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/"
  41. }
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement