1 # Contributor: Gleidson Echeli <gleidson.echeli@gmail.com>
3 pkgname=oracle-datamodeler
6 pkgdesc="A graphical tool for database modeling"
8 url="http://www.oracle.com/technology/products/database/datamodeler/index.html"
10 depends=('java-environment')
12 install=oracle-datamodeler.install
13 source=(datamodeler-2.0.0-584-no-jre.zip
19 md5sums=('7ccdcd3183e2cc29d5f3764a2f9a2930'
20 '37d11434dd4bbb4cbf781cddc780bd79'
21 '62d5d7cdb84e64c563b4cf9d81d7d502'
22 'cba55b0789f8ef287b7e1e0bec9a8603'
23 '8eea9f79adcb6b53e8c35622c41aeb8d'
24 'b9459bf2bc27d0efd418c4bbe6e31379')
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
34 install -Dm644 "$f" "$pkgdir/opt/oracle-datamodeler/$target"
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"