mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
system/omnidb-app: Added (Database Management System).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
d7c141fcb5
commit
5ba53c12e0
5 changed files with 131 additions and 0 deletions
7
system/omnidb-app/README
Normal file
7
system/omnidb-app/README
Normal file
|
@ -0,0 +1,7 @@
|
|||
OmniDB is an open source browser-based app designed to access and
|
||||
manage many different Database Management systems, e.g. PostgreSQL,
|
||||
Oracle and MySQL. OmniDB can run either as an App or via Browser,
|
||||
combining the flexibility needed for various access paths with a
|
||||
design that puts security first. OmniDB is actively developed,
|
||||
automatically tested on a variety of databases and browsers and
|
||||
comes with full documentation.
|
9
system/omnidb-app/doinst.sh
Normal file
9
system/omnidb-app/doinst.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
86
system/omnidb-app/omnidb-app.SlackBuild
Normal file
86
system/omnidb-app/omnidb-app.SlackBuild
Normal file
|
@ -0,0 +1,86 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for omnidb-app
|
||||
#
|
||||
# Copyright 2018 Gabriel Diniz Gisoldo, Santo Andre, SP, Brasil
|
||||
#
|
||||
# This work is based on AlienBOB's Chromium SlackBuild
|
||||
# http://www.slackware.com/~alien/slackbuilds/chromium/
|
||||
#
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=omnidb-app
|
||||
VERSION=${VERSION:-2.8.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
|
||||
DEBARCH="i386"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
DEBARCH="amd64"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
echo "$ARCH is not supported."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $PKG
|
||||
ar p $CWD/omnidb-app_${VERSION}-debian-${DEBARCH}.deb data.tar.xz | tar xJv
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
sed -i -e "s#Icon=omnidb#Icon=/usr/share/icons/hicolor/128x128/apps/omnidb.png#" \
|
||||
$PKG/usr/share/applications/omnidb-app.desktop
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a $CWD/README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
10
system/omnidb-app/omnidb-app.info
Normal file
10
system/omnidb-app/omnidb-app.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="omnidb-app"
|
||||
VERSION="2.8.0"
|
||||
HOMEPAGE="https://omnidb.org/en/"
|
||||
DOWNLOAD="https://omnidb.org/dist/2.8.0/omnidb-app_2.8.0-debian-i386.deb"
|
||||
MD5SUM="c29bf16cb6b5558a7a93f8eb0dfeb868"
|
||||
DOWNLOAD_x86_64="https://omnidb.org/dist/2.8.0/omnidb-app_2.8.0-debian-amd64.deb"
|
||||
MD5SUM_x86_64="b67c7d72a856a9d43019164962816712"
|
||||
REQUIRES=""
|
||||
MAINTAINER="Gabriel Diniz Gisoldo"
|
||||
EMAIL="gabrielgisoldi@gmail.com"
|
19
system/omnidb-app/slack-desc
Normal file
19
system/omnidb-app/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
omnidb-app: omnidb-app (Open Source Database Management System - App Standalone)
|
||||
omnidb-app:
|
||||
omnidb-app: OmniDB is an open source browser-based app designed to access and
|
||||
omnidb-app: manage many different Database Management systems, e.g. PostgreSQL,
|
||||
omnidb-app: Oracle and MySQL. OmniDB can run either as an App or via Browser,
|
||||
omnidb-app: combining the flexibility needed for various access paths with a
|
||||
omnidb-app: design that puts security first. OmniDB is actively developed,
|
||||
omnidb-app: automatically tested on a variety of databases and browsers and
|
||||
omnidb-app: comes with full documentation.
|
||||
omnidb-app:
|
||||
omnidb-app: Homepage: https://omnidb.org/en/
|
Loading…
Reference in a new issue