diff options
author | nashgul | 2015-10-14 16:31:29 +0200 |
---|---|---|
committer | nashgul | 2015-10-14 16:31:29 +0200 |
commit | 8e5965aee4d2291d7fe6829806a464ac34dbcb75 (patch) | |
tree | cc617dd9f8edce0dc400cc57537aa793b65bd42d | |
download | aur-8e5965aee4d2291d7fe6829806a464ac34dbcb75.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 57 | ||||
-rwxr-xr-x | dbdesigner | 67 | ||||
-rw-r--r-- | dbdesigner.desktop | 6 |
4 files changed, 146 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..923b634e7781 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = dbdesigner + pkgdesc = fabFORCE's visual database design system + pkgver = 4.0.5.4 + pkgrel = 1 + url = http://www.fabforce.net/dbdesigner4/index.php + arch = x86_64 + license = GPL + depends = lib32-kylixlibs + depends = lib32-libmng + depends = lib32-gcc-libs + source = http://downloads.mysql.com/DBDesigner4/DBDesigner4.0.5.4.tar.gz + source = dbdesigner.desktop + source = dbdesigner + +pkgname = dbdesigner + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e1aed7391092 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: manuel alcocer <m.alcocer1978@gmail.com> + +pkgname=dbdesigner +pkgver=4.0.5.4 +pkgrel=1 +pkgdesc="fabFORCE's visual database design system" +arch=(x86_64) +url="http://www.fabforce.net/dbdesigner4/index.php" +license=('GPL') +depends=('lib32-kylixlibs' 'lib32-libmng' 'lib32-gcc-libs') +_libdir=usr/lib32/DBDesigner4 +source=(http://downloads.mysql.com/DBDesigner4/DBDesigner$pkgver.tar.gz + dbdesigner.desktop + dbdesigner) + +package() { + cd "$srcdir/DBDesigner4" + + # install DBDesigner4 core files + install -d "$pkgdir/opt/DBDesigner4" + cp -af * "$pkgdir/opt/DBDesigner4" + cd "$pkgdir/opt/DBDesigner4" + + # install binary, icon and desktop files + install -Dm755 "$srcdir/dbdesigner" \ + "$pkgdir/usr/bin/dbdesigner" + install -Dm644 Gfx/Icon48.xpm \ + "$pkgdir/usr/share/pixmaps/dbdesigner.xpm" + install -Dm644 "$srcdir/dbdesigner.desktop" \ + "$pkgdir/usr/share/applications/dbdesigner.desktop" + + + # install library in "$_libdir" (/usr/lib/DBDesigner4 or /usr/lib32/DBDesigner4) + for i in $(ls Linuxlib); do + install -Dm755 Linuxlib/$i "$pkgdir/$_libdir/$i" + done + ln -s bplrtl.so.6.9.0 "$pkgdir/$_libdir/bplrtl.so.6.9" + ln -s dbxres.en.1.0 "$pkgdir/$_libdir/dbxres.en.1" + ln -s libmidas.so.1.0 "$pkgdir/$_libdir/libmidas.so.1" + ln -s libmysqlclient.so.10.0.0 "$pkgdir/$_libdir/libmysqlclient.so" + ln -s libqt.so.2.3.2 "$pkgdir/$_libdir/libqt.so.2" + ln -s libqtintf-6.9.0-qt2.3.so "$pkgdir/$_libdir/libqtintf-6.9-qt2.3.so" + ln -s libsqlmy23.so.1.0 "$pkgdir/$_libdir/libsqlmy23.so" + ln -s libsqlmy23.so "$pkgdir/$_libdir/libsqlmy.so" + ln -s libsqlora.so.1.0 "$pkgdir/$_libdir/libsqlora.so" + ln -s libDbxSQLite.so.2.8.5 "$pkgdir/$_libdir/libDbxSQLite.so" + ln -s liblcms.so.1.0.9 "$pkgdir/$_libdir/liblcms.so" + ln -s libpng.so.2.1.0.12 "$pkgdir/$_libdir/libpng.so.2" + ln -s libstdc++.so.5.0.0 "$pkgdir/$_libdir/libstdc++.so.5" + + # package cleanup + rm DBDesigner4.spec # RPM pkgs related (not Archlinux) + rm startdbd.desktop # Replaced by dbdesigner.desktop + rm startdbd # Replaced by dbdesigner + rm -rf Linuxlib # Redundant: already in $_libdir + rm "$pkgdir/$_libdir/deleteSymbolicLinks.sh" +} diff --git a/dbdesigner b/dbdesigner new file mode 100755 index 000000000000..7a6440bd5d5b --- /dev/null +++ b/dbdesigner @@ -0,0 +1,67 @@ +#!/bin/bash +# +# Starts DBDesigner4 +# This script was adapted from original "startdbd" for Archlinux + +# verify existence of application folder +app_path=/opt/DBDesigner4 +if [ ! -d $app_path ]; then + echo -e "Error: DBDesigner4 folder \'$app_path\' not found!" + exit 1 +fi + +# verify existence of executable +if [ ! -f $app_path/DBDesigner4 ]; then + echo -e "Error: DBDesigner4 executable \'$app_path/DBDesigner4\' not found!" + exit 1 +fi + +# verify existence of library folder and libraries of DBDesigner4 and Kylixlibs +if [ $(uname -m) == x86_64 ]; then + app_ld_path=/usr/lib32/DBDesigner4 + kylix_ld_path=/usr/lib32/kylix3 +else # i686 expected + app_ld_path=/usr/lib/DBDesigner4 + kylix_ld_path=/usr/lib/kylix3 +fi +if [ ! -f "$app_ld_path/bplrtl.so.6.9.0" ]; then + echo -e "Error: DBDesigner4 library folder \'$app_ld_path\' not found!" + exit 1 +fi +if [ ! -f "$kylix_ld_path/libborqt-6.9-qt2.3.so" ]; then + echo -e "Error: Kylixlibs folder \'$kylix_ld_path\' not found!" + exit 1 +fi + +# First check to see if we have an LD_LIBRARY_PATH environment variable +if [ -n "$LD_LIBRARY_PATH" ]; then +# we do, so prepend our path first + export LD_LIBRARY_PATH="$app_ld_path:$kylix_ld_path:$LD_LIBRARY_PATH" +else + # we do not, so we will create the env var. + export LD_LIBRARY_PATH="$app_ld_path:$kylix_ld_path" +fi + +# make sure we have something specified for the LANG environment variable +if [ -z "$LANG" ]; then + # set LANG to an appropriate value + export LANG=en_US +fi + +if [ ! -d ~/.DBDesigner4 ]; then + mkdir ~/.DBDesigner4 +fi + +## Note: These two require old and unavailable libs (Ex: libXft.so.1) +## around the Internet. Therefore, had to disabilitate even if +## it sacrifices fonts' smoothness. +## +#use the original qt files +#export CLX_USE_LIBQT=yes +# +#QT smooth fonts +#export QT_XFT=true + +# now run the application, passing any parameters that where specified. +echo Starting DBDesigner4 ... +$app_path/DBDesigner4 $* 2> ~/.DBDesigner4/DBD4.log diff --git a/dbdesigner.desktop b/dbdesigner.desktop new file mode 100644 index 000000000000..e5746dc73983 --- /dev/null +++ b/dbdesigner.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=DBDesigner4 +Comment=fabFORCE DBDesigner 4 +Type=Application +Exec=dbdesigner +Icon=dbdesigner |