Advertisement
Guest User

Untitled

a guest
Dec 10th, 2020
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. #Mainteiner: Jesse Jaara <gmail.com: jesse.jaara>
  2.  
  3. pkgname=postgresql-jdbc
  4. pkgver=42.2.18
  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. md5sums=('da7e6f8b26deefe7c03b391454732a0d'
  16. 'af08226777cdb66e6c5ade2482c8452a'
  17. 'dff2757f4465d3e4e15da9671b8c2403'
  18. 'd6895bb05ac7b9c85c4e89f3880127e3')
  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