updated on Thu Jan 19 04:14:35 UTC 2012
[aur-mirror.git] / oracle-sqldeveloper / PKGBUILD
blobc7b8f17adc73c3aff10ee5a1eb353b4bf6ef3926
1 # Maintainer: xduugu
2 # Contributor: Evangelos Foutras <foutrelis@gmail.com>
3 # Contributor: David Fuhr <david.fuhr@web.de>
5 pkgname=oracle-sqldeveloper
6 pkgver=3.0.04.34
7 pkgrel=2
8 pkgdesc="A graphical tool for database development"
9 arch=('any')
10 url="http://www.oracle.com/technology/products/database/sql_developer/index.html"
11 license=('custom:OTN')
12 depends=('java-environment')
13 install=oracle-sqldeveloper.install
14 source=(http://download/file/from/oracle/page/sqldeveloper-$pkgver-no-jre.zip
15         oracle-sqldeveloper.desktop
16         oracle-sqldeveloper.sh
17         LICENSE
18         java_home.patch)
19 md5sums=('f3339bd9943c3352e635d7e3a043df9f'
20          'd7bbcd2d0af1e35934e65abbe2dc3fa1'
21          'a73ee0987b0faa7d789d03b72ce4f3d0'
22          '71a4092467209c160d0f34abbc08e049'
23          '827ede82380ed1bf245ff417fec9fd52')
24 sha256sums=('fa31b31ead6120fe83ca27610345ad20124ff223ae27f4a8a47b5ef0f305f55e'
25             '0b34737f9ea9376f55ca075588ba1a16c0f9112069b502b0da94dd992b39336c'
26             '8ae9df42b3ac1fbdf0e0ed6f7e9de5df38019c35054558fa389419e2e02aa4fa'
27             '7b3a6fd8a1ade4427382ee36dc28432655902a0a68547b29c5ce089bd85fe3de'
28             'b220dd1b784cf984b72b367b4784b2dcebf83227c2e419d3d102b1ab4c282c14')
30 package() {
31   cd "$srcdir/sqldeveloper"
33   patch -Np1 < "$srcdir/java_home.patch"
34   find . \( -iname "*.exe" -o -iname "*.dll" \) -exec rm -f "{}" +
35   find . -type f -exec install -Dm644 "{}" "$pkgdir/opt/oracle-sqldeveloper/{}" \;
36   chmod +x "$pkgdir/opt/$pkgname/sqldeveloper.sh"
38   install -Dm755 "$srcdir/$pkgname.sh"      "$pkgdir/usr/bin/$pkgname"
39   install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
40   install -Dm644 "$srcdir/LICENSE"          "$pkgdir/usr/share/licenses/$pkgname/LICENSE"