summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 087a86d9b7685d7a00fe79dc8170f417e9630cef (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
36
37
38
39
40
41
42
# Maintainer: Kevin Baxmann <kvbx@kvbx.de>
# Previous Maintainer: Arne Hoch <arne@derhoch.de>

pkgname=sqlcl
pkgver=19.2.1.206.1649
pkgrel=1
pkgdesc="SQL Developer command line interface for Oracle"
arch=('i686' 'x86_64')
url="http://www.oracle.com/technetwork/developer-tools/sqlcl/overview/index.html"
license=('custom:OTN')
depends=('java-runtime>=8')

# Fail if retrieval is attempted of any of the manual:// URLs
DLAGENTS+=('manual::/usr/bin/false');

source=("LICENSE"
        "manual://${pkgname}-${pkgver}.zip"
        "sqlcl.sh")
sha256sums=('f904a30b07ddf7806a33620f93b94c3d315154d26a371ece48695bb3555064a2'
            '23b40f9ffb3c0c33c8463a7e875a30fd6582fc85849144b76dc3e24f24b7856e'
            '4a0469c0adc964d91c611a643075087235dc2de8332e87297abe9865d19c2a14')

msg "Warning: This software cannot be downloaded automatically."
plain "You will need to sign up for an Oracle account and download the software from"
plain "Oracle directly.  Place the downloaded file in the same directory as the"
plain "PKGBUILD and re-run makepkg."
plain ""
plain "The source .zip files can be downloaded from:"
plain ""
plain "https://www.oracle.com/technetwork/developer-tools/sqlcl/overview/index.html"
plain ""
plain ""

package() {
  cd ${srcdir}
  install -d ${pkgdir}/opt/${pkgname}/lib
  install -d ${pkgdir}/opt/${pkgname}/bin
  install -d ${pkgdir}/usr/bin
  install -m 644 ${pkgname}/lib/*.jar ${pkgdir}/opt/${pkgname}/lib
  install -m 755 ${pkgname}/bin/sql ${pkgdir}/opt/${pkgname}/bin/sql
  install -m 755 ${srcdir}/sqlcl.sh ${pkgdir}/usr/bin/sqlcl
}