updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / dbdesigner / PKGBUILD
blob9147f4097b694e333a0b77b4e2b3110c337e314e
1 # Maintainer: josephgbr <rafael.f.f1 at gmail.com>
3 pkgname=dbdesigner
4 pkgver=4.0.5.4
5 pkgrel=1
6 pkgdesc="fabFORCE's visual database design system"
7 arch=(i686 x86_64)
8 url="http://www.fabforce.net/dbdesigner4/index.php"
9 license=('GPL')
10 if [ $CARCH == x86_64 ]; then
11         depends=('lib32-kylixlibs' 'lib32-libmng' 'lib32-gcc-libs')
12         _libdir=usr/lib32/DBDesigner4
13 else
14         depends=('kylixlibs' 'libmng')
15         _libdir=usr/lib/DBDesigner4
17 source=(http://downloads.mysql.com/DBDesigner4/DBDesigner$pkgver.tar.gz
18         dbdesigner.desktop
19         dbdesigner)
20 md5sums=('3a9bfd9b40fb8b70e24fd2195424cb51'
21          '9ad96f433c24981960066d8f11a819ac'
22          'c228252e9f78cac64f232d1f07ffed4b')
24 package() {
25   cd "$srcdir/DBDesigner4"  
27   # install DBDesigner4 core files
28   install -d "$pkgdir/opt/DBDesigner4"
29   cp -af * "$pkgdir/opt/DBDesigner4"
30   cd "$pkgdir/opt/DBDesigner4"
31   
32   # install binary, icon and desktop files
33   install -Dm755 "$srcdir/dbdesigner" \
34                  "$pkgdir/usr/bin/dbdesigner"
35   install -Dm644 Gfx/Icon48.xpm \
36                  "$pkgdir/usr/share/pixmaps/dbdesigner.xpm"
37   install -Dm644 "$srcdir/dbdesigner.desktop" \
38                  "$pkgdir/usr/share/applications/dbdesigner.desktop"
39                 
40   
41   # install library in "$_libdir" (/usr/lib/DBDesigner4 or /usr/lib32/DBDesigner4)
42   for i in $(ls Linuxlib); do
43         install -Dm755 Linuxlib/$i "$pkgdir/$_libdir/$i"
44   done
45   ln -s bplrtl.so.6.9.0 "$pkgdir/$_libdir/bplrtl.so.6.9"
46   ln -s dbxres.en.1.0 "$pkgdir/$_libdir/dbxres.en.1"
47   ln -s libmidas.so.1.0 "$pkgdir/$_libdir/libmidas.so.1"
48   ln -s libmysqlclient.so.10.0.0 "$pkgdir/$_libdir/libmysqlclient.so"
49   ln -s libqt.so.2.3.2 "$pkgdir/$_libdir/libqt.so.2"
50   ln -s libqtintf-6.9.0-qt2.3.so "$pkgdir/$_libdir/libqtintf-6.9-qt2.3.so"
51   ln -s libsqlmy23.so.1.0 "$pkgdir/$_libdir/libsqlmy23.so"
52   ln -s libsqlmy23.so "$pkgdir/$_libdir/libsqlmy.so"
53   ln -s libsqlora.so.1.0 "$pkgdir/$_libdir/libsqlora.so"
54   ln -s libDbxSQLite.so.2.8.5 "$pkgdir/$_libdir/libDbxSQLite.so"
55   ln -s liblcms.so.1.0.9 "$pkgdir/$_libdir/liblcms.so"
56   ln -s libpng.so.2.1.0.12 "$pkgdir/$_libdir/libpng.so.2"
57   ln -s libstdc++.so.5.0.0 "$pkgdir/$_libdir/libstdc++.so.5"
58   
59   # package cleanup
60   rm DBDesigner4.spec   # RPM pkgs related (not Archlinux)
61   rm startdbd.desktop   # Replaced by dbdesigner.desktop
62   rm startdbd           # Replaced by dbdesigner
63   rm -rf Linuxlib       # Redundant: already in $_libdir
64   rm "$pkgdir/$_libdir/deleteSymbolicLinks.sh"