summaryrefslogtreecommitdiff
path: root/development/avra/avra.SlackBuild
diff options
context:
space:
mode:
authorMarek Wodzinski <majek@w7i.pl>2020-01-23 19:51:02 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-25 02:54:59 +0700
commit8a3b12874225f2079c626ad227ded6bfe4e5081b (patch)
tree57614c101337be3b8ce4a82086795645cfd3f0b9 /development/avra/avra.SlackBuild
parentda2051f222be68900ebe732e0661387ebdde0739 (diff)
downloadslackbuilds-8a3b12874225f2079c626ad227ded6bfe4e5081b.tar.gz
development/avra: Updated for version 1.4.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/avra/avra.SlackBuild')
-rw-r--r--development/avra/avra.SlackBuild25
1 files changed, 5 insertions, 20 deletions
diff --git a/development/avra/avra.SlackBuild b/development/avra/avra.SlackBuild
index 1cb7b839d0..d27a24622e 100644
--- a/development/avra/avra.SlackBuild
+++ b/development/avra/avra.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for avra
# Copyright 2013 flanker <flank7er@gmail.com>
+# Copyright 2020 Marek Wodzinski <majek@w7i.pl>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=avra
-VERSION=${VERSION:-1.3.0}
+VERSION=${VERSION:-1.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,7 +61,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -69,38 +70,22 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-touch NEWS ChangeLog
-cd src
-./bootstrap
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
+sed -i 's|^PREFIX = /usr/local|PREFIX = /usr|' Makefile
make
make install DESTDIR=$PKG
-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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING TODO \
+ AUTHORS CHANGELOG.md COPYING README.md TODO USAGE.md\
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/usr/include/avra
mv examples $PKG/usr/doc/$PRGNAM-$VERSION
-mv includes/* $PKG/usr/include/avra
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc