aboutsummaryrefslogtreecommitdiff
path: root/academic/geda-gaf/geda-gaf.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/geda-gaf/geda-gaf.SlackBuild')
-rw-r--r--academic/geda-gaf/geda-gaf.SlackBuild49
1 files changed, 14 insertions, 35 deletions
diff --git a/academic/geda-gaf/geda-gaf.SlackBuild b/academic/geda-gaf/geda-gaf.SlackBuild
index 91b71de88674..fa4a2f07c31c 100644
--- a/academic/geda-gaf/geda-gaf.SlackBuild
+++ b/academic/geda-gaf/geda-gaf.SlackBuild
@@ -3,10 +3,11 @@
# Slackware build script for gEDA / gaf
# Written by Stephen Van Berg stephen_van_berg@earlicker.com
+# Updated by Kyle Guinn <elyk03@gmail.com>
PRGNAM=geda-gaf
-VERSION=${VERSION:-1.6.2}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-1.8.2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -22,6 +23,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+DOCS="ABOUT-NLS AUTHORS COPYING* ChangeLog HACKING INSTALL NEWS README"
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -45,15 +48,7 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -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 {} \;
-
-# Starting with glib 2.32 it is now mandatory to
-# include glib.h instead of individual headers.
-patch -p1 -i $CWD/glib-single-include.patch
+chmod -R u+w,go-w,a+rX-st .
LDFLAGS="$LDFLAGS -lm" \
CFLAGS="$SLKCFLAGS" \
@@ -64,37 +59,21 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
+ --infodir=/usr/info \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux \
+ --disable-update-xdg-database
make
-make install DESTDIR=$PKG
-
-# Don't clobber Slackware's mime info.
-rm -f $PKG/usr/share/applications/mimeinfo.cache
-rm -f $PKG/usr/share/mime/XMLnamespaces
-rm -f $PKG/usr/share/mime/version
-rm -f $PKG/usr/share/mime/aliases
-rm -f $PKG/usr/share/mime/generic-icons
-rm -f $PKG/usr/share/mime/globs
-rm -f $PKG/usr/share/mime/globs2
-rm -f $PKG/usr/share/mime/icons
-rm -f $PKG/usr/share/mime/magic
-rm -f $PKG/usr/share/mime/mime.cache
-rm -f $PKG/usr/share/mime/subclasses
-rm -f $PKG/usr/share/mime/treemagic
-rm -f $PKG/usr/share/mime/types
-
-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
+make install-strip DESTDIR=$PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+rm -f $PKG/usr/info/dir
+gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING ChangeLog INSTALL NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install