From 99c72788847da7bd3aa87dbfeb64dacedb1a69df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Nille=20=C3=85kerstr=C3=B6m?= Date: Thu, 13 May 2010 00:34:12 +0200 Subject: misc/flashrom: Updated for version 0.9.1 --- misc/flashrom/flashrom.SlackBuild | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'misc/flashrom/flashrom.SlackBuild') diff --git a/misc/flashrom/flashrom.SlackBuild b/misc/flashrom/flashrom.SlackBuild index e70a1767f2f6e..354607a3001bc 100644 --- a/misc/flashrom/flashrom.SlackBuild +++ b/misc/flashrom/flashrom.SlackBuild @@ -25,7 +25,7 @@ # Modified by SlackBuilds.org PRGNAM=flashrom -VERSION=0.9.0 +VERSION=0.9.1 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -56,24 +56,25 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -#Set right man path in Makefile -sed -i 's/\/share//' Makefile -#create $(PREFIX)/sbin so the flashrom can be installed -sed -i '/install:/ a\\tmkdir -p $(PREFIX)/sbin' Makefile make CFLAGS="$SLKCFLAGS -Wall -Werror" || exit 1 -make install PREFIX=$PKG/usr || exit 1 +make install PREFIX=$PKG/usr MANDIR=$PKG/usr/man || exit 1 + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a ChangeLog COPYING README serprog-protocol.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} if [ "$1" = "--cleanup" ]; then rm -rf $PKG $TMP/$PRGNAM-$VERSION -fi +fi \ No newline at end of file -- cgit v1.2.3