summaryrefslogtreecommitdiff
path: root/development/magit/magit.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/magit/magit.SlackBuild')
-rw-r--r--development/magit/magit.SlackBuild29
1 files changed, 6 insertions, 23 deletions
diff --git a/development/magit/magit.SlackBuild b/development/magit/magit.SlackBuild
index 8cc2058d90..54d8af5d3e 100644
--- a/development/magit/magit.SlackBuild
+++ b/development/magit/magit.SlackBuild
@@ -1,5 +1,5 @@
#!/bin/sh
-# Slackware build script for magit 0.8.2
+# Slackware build script for magit 1.0.0
# Written by Asaf Ohaion <asaf at lingnu.com>
#
@@ -25,7 +25,7 @@
PRGNAM=magit
-VERSION=${VERSION:-0.8.2}
+VERSION=${VERSION:-1.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -57,33 +57,17 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-#if [ ! -f "configure" ]; then
-# ./autogen.sh
-#fi
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --infodir=/usr/info \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
+# Fix location of info files
+sed "s|share/info|info|g" -i Makefile
make
-make install DESTDIR=$PKG
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+make install PREFIX=/usr DESTDIR=$PKG
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- README AUTHORS NEWS COPYING INSTALL \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
@@ -95,4 +79,3 @@ rm -rf $PKG/etc/emacs
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
-