diff options
author | Arn0 <yth@ythogtha.org> | 2019-11-07 23:22:07 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-11-09 09:39:15 +0700 |
commit | ce47a444a93a2495d3052805503ee6fa9ba81780 (patch) | |
tree | 2a28fd42e11998fd3294c9a553100d900c6e2d6e /network/glewlwyd/glewlwyd.SlackBuild | |
parent | a5ab89a4d961d5e6bcb00b8928c03c1fd7b36b66 (diff) | |
download | slackbuilds-ce47a444a93a2495d3052805503ee6fa9ba81780.tar.gz |
network/glewlwyd: updated for version 2.0.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/glewlwyd/glewlwyd.SlackBuild')
-rw-r--r-- | network/glewlwyd/glewlwyd.SlackBuild | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/network/glewlwyd/glewlwyd.SlackBuild b/network/glewlwyd/glewlwyd.SlackBuild index b264620754..c4a2d3d9e3 100644 --- a/network/glewlwyd/glewlwyd.SlackBuild +++ b/network/glewlwyd/glewlwyd.SlackBuild @@ -21,7 +21,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=glewlwyd -VERSION=${VERSION:-2.0.0_rc2} +VERSION=${VERSION:-2.0.0} SRCVER=$(tr _ - <<< ${VERSION}) BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,16 +40,16 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" + SLKCFLAGS="-O2 -march=i586 -mtune=i686 -Wno-error=maybe-uninitialized" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" + SLKCFLAGS="-O2 -march=i686 -mtune=i686 -Wno-error=maybe-uninitialized" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC -Wno-error=maybe-uninitialized" LIBDIRSUFFIX="64" else - SLKCFLAGS="-O2 -Wno-error=stringop-truncation" + SLKCFLAGS="-O2 -Wno-error=maybe-uninitialized" LIBDIRSUFFIX="" fi @@ -83,7 +83,12 @@ cd .. 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 +# Default directory for SQLite3 database +mkdir -p $PKG/var/cache/glewlwyd/ mv $PKG/etc/glewlwyd/glewlwyd.conf $PKG/etc/glewlwyd/glewlwyd.conf.sample +if [ ! -z "$LIBDIRSUFFIX" ]; then + sed -i 's#/usr/lib/glewlwyd/#/usr/lib${LIBDIRSUFFIX}/glewlwyd/#g' $PKG/etc/glewlwyd/glewlwyd.conf.sample +fi mkdir -p $PKG/etc/rc.d/ install -m 755 $CWD/rc.$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM.new @@ -97,6 +102,13 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh echo "preserve_perms etc/rc.d/rc.$PRGNAM.new" >> $PKG/install/doinst.sh +if [ ! -z $GLEWLWYD_SQLITE_INIT ]; then + cat >> $PKG/install/doinst.sh <<EOF +if [ ! -f /var/cache/glewlwyd/glewlwyd.db ];then + sqlite3 /var/cache/glewlwyd/glewlwyd.db < /usr/share/glewlwyd/docs/database/init.sqlite3.sql +fi +EOF +fi cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |