development/magit: Updated for version 1.0.0.

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Asaf Ohaion 2011-11-02 20:06:23 -02:00 committed by Niels Horn
parent bd5ccf0b8a
commit 67f3253d71
2 changed files with 9 additions and 26 deletions

View file

@ -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}

View file

@ -1,8 +1,8 @@
PRGNAM="magit"
VERSION="0.8.2"
VERSION="1.0.0"
HOMEPAGE="http://philjackson.github.com/magit/"
DOWNLOAD="https://github.com/downloads/philjackson/magit/magit-0.8.2.tar.gz"
MD5SUM="fe7e1a1085190ede6bed49e406fe0ce9"
DOWNLOAD="http://github.com/downloads/magit/magit/magit-1.0.0.tar.gz"
MD5SUM="1f640741ff0cf94ea84c607fac8758d6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Asaf Ohaion"