summaryrefslogtreecommitdiff
path: root/development/avarice/avarice.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/avarice/avarice.SlackBuild')
-rw-r--r--development/avarice/avarice.SlackBuild19
1 files changed, 13 insertions, 6 deletions
diff --git a/development/avarice/avarice.SlackBuild b/development/avarice/avarice.SlackBuild
index 1a269a408c..3346fc77cc 100644
--- a/development/avarice/avarice.SlackBuild
+++ b/development/avarice/avarice.SlackBuild
@@ -40,10 +40,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf avarice-$VERSION avarice-build-$VERSION
-tar xvf $CWD/avarice-$VERSION.tar.bz2
-mkdir avarice-build-$VERSION
-cd avarice-build-$VERSION
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -51,9 +50,17 @@ 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 {} \;
+# Fix for gcc-5.2.0 (-current)
+# http://anonscm.debian.org/cgit/collab-maint/avarice.git/plain/debian/patches/bug-777789-gcc-5.patch?id=f8686dbd02cc6710e36f31ab118a46ed0adc758c
+patch -p1 < $CWD/bug-777789-gcc-5.patch
+
+rm -rf $TMP/$PRGNAM-build-$VERSION
+mkdir $TMP/$PRGNAM-build-$VERSION
+cd $TMP/$PRGNAM-build-$VERSION
+
CFLAGS_FOR_BUILD="$SLKCFLAGS" \
CXXFLAGS_FOR_BUILD="$SLKCFLAGS" \
-../avarice-$VERSION/configure \
+../$PRGNAM-$VERSION/configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
@@ -74,7 +81,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
for file in COPYING* ChangeLog AUTHORS INSTALL NEWS; do
- cp ../avarice-$VERSION/$file $PKG/usr/doc/$PRGNAM-$VERSION
+ cp ../$PRGNAM-$VERSION/$file $PKG/usr/doc/$PRGNAM-$VERSION
done
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild