summaryrefslogtreecommitdiff
path: root/system/pgadmin3/pgadmin3.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/pgadmin3/pgadmin3.SlackBuild')
-rw-r--r--system/pgadmin3/pgadmin3.SlackBuild21
1 files changed, 11 insertions, 10 deletions
diff --git a/system/pgadmin3/pgadmin3.SlackBuild b/system/pgadmin3/pgadmin3.SlackBuild
index 65eb85242a..46965a26bf 100644
--- a/system/pgadmin3/pgadmin3.SlackBuild
+++ b/system/pgadmin3/pgadmin3.SlackBuild
@@ -3,9 +3,10 @@
# Slackware build script for pgAdmin
# Written by Iskar Enev (<iskar.enev[@]gmail.com>)
# Modified by slakmagik <slakmagik@gmail.com>
+# Modified by Mario Preksavec <mario@slackware.hr>
PRGNAM=pgadmin3
-VERSION=${VERSION:-1.18.1}
+VERSION=${VERSION:-1.20.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -36,8 +37,6 @@ else
LIBDIRSUFFIX=""
fi
-DOCUMENTATION="BUGS CHANGELOG DEVELOPERS INSTALL LICENSE README TODO"
-
set -e
rm -rf $PKG
@@ -48,10 +47,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
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 600 -o -perm 444 -o -perm 440 \
- -o -perm 400 \) -exec chmod 644 {} \;
+ \( -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 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -66,8 +65,8 @@ CXXFLAGS="$SLKCFLAGS" \
make
make DESTDIR=$PKG install
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF |
- cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+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
# add the range of pgAdmin3 images - only one can be used in the desktop file
# but the default might not be the one people would want
@@ -81,7 +80,9 @@ sed '/^Icon=/s/pgadmin3/pixmaps/' \
# as with so many packages, --docdir is present but ignored
mkdir -p $PKG/usr/doc
ln -s ../share/pgadmin3/docs $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCUMENTATION $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ BUGS CHANGELOG DEVELOPERS INSTALL LICENSE README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install