summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a0f47aef6f6f87aa4e5a4a952f4fc75db3faf60 (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
# Maintainer: Vlad Pirlog <(firstname) at (lastname) dot com>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Kevin Baxmann <kvbx@kvbx.de>
# Contributor: Arne Hoch <arne@derhoch.de>

pkgname=sqlcl
pkgver='24.2.0.180.1721'
pkgrel=1
pkgdesc='SQL Developer command line interface for Oracle'
arch=('any')
url='https://www.oracle.com/database/sqldeveloper/technologies/sqlcl'
license=('custom')
changelog=CHANGELOG.md
depends=('bash' 'java-runtime>=8')
source=("$pkgname-$pkgver.zip::https://download.oracle.com/otn_software/java/sqldeveloper/$pkgname-$pkgver.zip"
        "$pkgname.sh")
sha256sums=('db670b59f784a899b8f0a7940c320c3a73eefd1f28100b413419f7b257cc1801'
            '34c5f2be48639dcd8ec9f38f950916a394ae399a0e583fbde4020acdccf951e0')

package() {
  install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"

  install -Dm644 "$pkgname/LICENSE.txt" -t "$pkgdir/usr/share/licenses/$pkgname/"
  install -Dm644 "$pkgname/THIRD-PARTY-LICENSES.txt" -t "$pkgdir/usr/share/licenses/$pkgname/"

  rm "$pkgname"/{LICENSE.txt,THIRD-PARTY-LICENSES.txt,NOTICES.txt} "$pkgname"/bin/sql.exe

  install -d "$pkgdir/opt/$pkgname/"
  cp -a "$pkgname"/* "$pkgdir/opt/$pkgname/"
}