diff options
author | RyuzakiKK | 2015-06-11 17:54:02 +0200 |
---|---|---|
committer | RyuzakiKK | 2015-06-11 17:54:02 +0200 |
commit | 82bd51293bc3cb535ccdefc11dbc1929bb1ff9b9 (patch) | |
tree | a38bfeeb77193d4b9d1d7240ce4df76e0642d765 | |
download | aur-82bd51293bc3cb535ccdefc11dbc1929bb1ff9b9.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 32 | ||||
-rw-r--r-- | PKGBUILD | 63 | ||||
-rw-r--r-- | dbmain.desktop | 8 | ||||
-rw-r--r-- | dbmain.png | bin | 0 -> 1266 bytes | |||
-rwxr-xr-x | dbmain.sh | 19 |
5 files changed, 122 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..68fe71fb6129 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,32 @@ +# Generated by makepkg 4.2.0 +# Thu Jan 8 20:06:38 UTC 2015 +pkgbase = dbmain + pkgdesc = A free data-modeling and data-architecture tool + pkgver = 9.2.0 + pkgrel = 2 + url = http://www.db-main.eu/ + arch = i686 + arch = x86_64 + license = custom + depends = java-environment + depends = coreutils + depends = lib32-sdl + depends = lib32-libjpeg6-turbo + depends = lib32-gtk2 + depends = lib32-libpng12 + depends = lib32-libsm + depends = lib32-alsa-lib + depends = lib32-libtiff4 + depends = lib32-libxtst + provides = dbmain + source = http://intranet.rever.eu/DISTRIBUTION/DB-MAIN/dbm-920-linux-setup.tar.gz + source = dbmain.sh + source = dbmain.desktop + source = dbmain.png + md5sums = 4cabf077d9989378de9024f3b320a9e9 + md5sums = 41cb50cf6a2a72cfc0b632d690726223 + md5sums = d19295f8f8430c66157722d450149b93 + md5sums = 6bb248b5807368118996f3f5ad2edb68 + +pkgname = dbmain + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8e5828ef9412 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Ludovico de Nittis <aasonykk [at] gmail [dot] com> +# Contributor: Eric Engestrom <aur [at] engestrom [dot] ch> + +pkgname=dbmain +pkgver=9.2.0 +pkgrel=2 +pkgdesc="A free data-modeling and data-architecture tool" +arch=(i686 x86_64) +url=http://www.db-main.eu/ +license=(custom) +depends=(java-environment coreutils) +if test "$CARCH" == 'i686'; then + depends+=(sdl) + depends+=(libjpeg6-turbo) + depends+=(gtk2) + depends+=(libpng12) + depends+=(libsm) + depends+=(alsa-lib) + depends+=(libtiff4) + depends+=(libxtst) +fi +if test "$CARCH" == 'x86_64'; then + depends+=(lib32-sdl) + depends+=(lib32-libjpeg6-turbo) + depends+=(lib32-gtk2) + depends+=(lib32-libpng12) + depends+=(lib32-libsm) + depends+=(lib32-alsa-lib) + depends+=(lib32-libtiff4) + depends+=(lib32-libxtst) +fi +provides=(dbmain) +source=("http://intranet.rever.eu/DISTRIBUTION/DB-MAIN/dbm-${pkgver//.}-linux-setup.tar.gz" + $pkgname.sh + $pkgname.desktop + $pkgname.png) +md5sums=('4cabf077d9989378de9024f3b320a9e9' + '41cb50cf6a2a72cfc0b632d690726223' + 'd19295f8f8430c66157722d450149b93' + '6bb248b5807368118996f3f5ad2edb68') + +package(){ + cd "${srcdir}" + + # Actual program + install -d "${pkgdir}/opt/dbmain/" + cp -r bin doc examples java plugins License.txt readme.html "${pkgdir}/opt/dbmain/" + + # Launch script + install -d "${pkgdir}/usr/bin/" + install -Dm644 "bin/libdbmfunc.so" "${pkgdir}/opt/dbmain/bin" + install -Dm644 "bin/libjidbm.so" "${pkgdir}/opt/dbmain/bin" + install -Dm644 "bin/libextr_ids.so" "${pkgdir}/opt/dbmain/bin" + install -Dm644 "bin/libextr_cob.so" "${pkgdir}/opt/dbmain/bin" + install -Dm644 "bin/libextr_ims.so" "${pkgdir}/opt/dbmain/bin" + install -Dm644 "bin/libextr_pl1.so" "${pkgdir}/opt/dbmain/bin" + install -Dm644 "$pkgname.desktop" "${pkgdir}/usr/share/applications/$pkgname.desktop" + install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" + install -m755 dbmain.sh "${pkgdir}/usr/bin/dbmain" + + # LICENSE file + install -Dm644 License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/dbmain.desktop b/dbmain.desktop new file mode 100644 index 000000000000..59416b442670 --- /dev/null +++ b/dbmain.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=DB-Main +Comment=A free data-modeling and data-architecture tool +Exec=dbmain +Icon=dbmain +Terminal=false +Type=Application +Categories=Office; diff --git a/dbmain.png b/dbmain.png Binary files differnew file mode 100644 index 000000000000..7b4c920432e1 --- /dev/null +++ b/dbmain.png diff --git a/dbmain.sh b/dbmain.sh new file mode 100755 index 000000000000..8958f7f44f2b --- /dev/null +++ b/dbmain.sh @@ -0,0 +1,19 @@ +#!/bin/sh +if [ "x$1" != "x" ] && [ -f "$1" ] && [[ "$1" == *.lun ]] +then + filepath="$(realpath "$1")" +fi + +export DB_MAIN_BIN=/opt/dbmain/bin +export PATH=$DB_MAIN_BIN:$PATH +export LD_LIBRARY_PATH=$DB_MAIN_BIN:$DB_MAIN_BIN/../java/jre/lib/i386/client:$LD_LIBRARY_PATH +#CLASSPATH modification only for dbm-deasy-9xx-linux-setup.tar.gz +export CLASSPATH=.:$DB_MAIN_BIN/../plugins/deasy/lib/jidbmjava.jar:$DB_MAIN_BIN/../plugins/deasy/lib/sqlite-jdbc-3.6.20.1.jar:$CLASSPATH +cd $DB_MAIN_BIN + +if [ "x$filepath" != "x" ] +then + db_main $filepath +else + db_main +fi |