updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / oracle-datamodeler / PKGBUILD
blob76dd0d10e7ec8057b88763d5bce52545418edd40
1 # Contributor: Gleidson Echeli <gleidson.echeli@gmail.com>
3 pkgname=oracle-datamodeler
4 pkgver=2.0.0
5 pkgrel=2
6 pkgdesc="A graphical tool for database modeling"
7 arch=('i686' 'x86_64')
8 url="http://www.oracle.com/technology/products/database/datamodeler/index.html"
9 license=('custom:OTN')
10 depends=('java-environment')
11 makedepends=('unzip')
12 install=oracle-datamodeler.install
13 source=(datamodeler-2.0.0-584-no-jre.zip
14         $pkgname.desktop
15         $pkgname.sh
16         $pkgname
17         LICENSE-OTN
18         java_home.patch)
19 md5sums=('7ccdcd3183e2cc29d5f3764a2f9a2930'
20          '37d11434dd4bbb4cbf781cddc780bd79'
21          '62d5d7cdb84e64c563b4cf9d81d7d502'
22          'cba55b0789f8ef287b7e1e0bec9a8603'
23          '8eea9f79adcb6b53e8c35622c41aeb8d'
24          'b9459bf2bc27d0efd418c4bbe6e31379')
26 build() {
27   cd "$srcdir/datamodeler"
29   find . -iname "*.exe" -or -iname "*.dll" -exec rm {} \;
30   patch -p1 -i "$srcdir/java_home.patch" || return 1
32   find . -type f | while read f; do
33     target=${f:2}
34     install -Dm644 "$f" "$pkgdir/opt/oracle-datamodeler/$target"
35   done
37   install -Dm755 "$srcdir/$pkgname" "$pkgdir/opt/$pkgname/bin/$pkgname"
38   install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/etc/profile.d/$pkgname.sh"
39   install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
40   install -Dm644 "$srcdir/LICENSE-OTN" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"