diff options
author | Eric Hameleers <alien@slackware.com> | 2006-07-28 22:09:47 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2006-07-28 22:09:47 +0000 |
commit | f449d55ea467b608ed7b1ddd2b0405ea06090ee2 (patch) | |
tree | e2423e5dfd8234c38caa15d2f069c0ac13c9e96f /p7zip/build/p7zip.SlackBuild | |
parent | 9ced8aa48d5250c0fcbb512569643036e1d096c8 (diff) | |
download | asb-f449d55ea467b608ed7b1ddd2b0405ea06090ee2.tar.gz asb-f449d55ea467b608ed7b1ddd2b0405ea06090ee2.tar.xz |
Update, script polishing
Diffstat (limited to 'p7zip/build/p7zip.SlackBuild')
-rwxr-xr-x | p7zip/build/p7zip.SlackBuild | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/p7zip/build/p7zip.SlackBuild b/p7zip/build/p7zip.SlackBuild index feac467c..ce405e83 100755 --- a/p7zip/build/p7zip.SlackBuild +++ b/p7zip/build/p7zip.SlackBuild @@ -13,6 +13,8 @@ # Changelog: # 4.30-1: 13/jan/2006 by Eric Hameleers <alien@slackware.com> # * Initial build. +# 4.42-1: 29/jul/2006 by Eric Hameleers <alien@slackware.com> +# * Update. # # Run 'sh SlackBuild --cleanup' to build a Slackware package. # The package (.tgz) plus descriptive .txt file are created in /tmp . @@ -28,7 +30,7 @@ if [ "$TMP" = "" ]; then fi PRGNAM=p7zip -VERSION=4.30 +VERSION=4.42 ARCH=${ARCH:-i486} BUILD=1 @@ -98,6 +100,7 @@ for (( i = 0; i < ${#SOURCE[*]}; i++ )) ; do wget -nv -O "${CWD}/${SOURCE[$i]}" "${SRCURL[$i]}" if [ $? -ne 0 ]; then echo "Downloading '${SOURCE[$i]}' failed... aborting the build." + mv -f "${CWD}/${SOURCE[$i]}" "${CWD}/${SOURCE[$i]}".FAIL exit 1 fi else @@ -155,7 +158,7 @@ done mv ${PRGNAM}_${VERSION} ${PRGNAM}-${VERSION} cd ${PRGNAM}-${VERSION} -chown -R root.root * +chown -R root:root * find . -perm 777 -exec chmod 755 {} \; @@ -196,7 +199,7 @@ cp -a $DOCS \ chmod -R a-w $PKG/usr/doc/$PRGNAM-$VERSION/* # Compress the man page(s) -gzip -9f $PKG/usr/man/*/* 2>/dev/null +find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; # Strip binaries ( cd $PKG @@ -208,7 +211,6 @@ gzip -9f $PKG/usr/man/*/* 2>/dev/null # --- OWNERSHIP, RIGHTS --- chmod -R o-w $PKG -chown root:bin $PKG/usr/bin/* chmod 755 $PKG/usr/bin/* @@ -219,10 +221,6 @@ cat $CWD/slack-desc > $PKG/install/slack-desc if [ -f $CWD/doinst.sh ]; then cat $CWD/doinst.sh > $PKG/install/doinst.sh fi -# I give in :-/ -if [ -f $CWD/slack-requires ]; then - cat $CWD/slack-requires > $PKG/install/slack-requires -fi # --- BUILDING --- @@ -233,9 +231,6 @@ makepkg --linkadd y --chown n $TMP/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz \ 2>&1 | tee $CWD/makepkg-${PRGNAM}.log (cd $TMP && md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz.md5) cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $TMP/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.txt -if [ -f $PKG/install/slack-requires ]; then - cat $PKG/install/slack-requires > $TMP/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.dep -fi # --- CLEANUP --- |