aboutsummaryrefslogtreecommitdiff
path: root/media/libs/libgc/libgc.SlackBuild
diff options
context:
space:
mode:
authorrafael2k <rafael2k@370017ae-e619-0410-ac65-c121f96126d4>2009-04-23 17:24:52 +0000
committerrafael2k <rafael2k@370017ae-e619-0410-ac65-c121f96126d4>2009-04-23 17:24:52 +0000
commit6b1208b64aee322595d4109ad431f1136306be7e (patch)
tree0d304f0f180db4df1f5b4f2e910ab23aea4929b9 /media/libs/libgc/libgc.SlackBuild
parent22790c8092ee8d789e6c1ced3adab337de482a31 (diff)
downloadslackbuilds-6b1208b64aee322595d4109ad431f1136306be7e.tar.gz
slackbuilds-6b1208b64aee322595d4109ad431f1136306be7e.tar.bz2
libgc fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2152 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'media/libs/libgc/libgc.SlackBuild')
-rwxr-xr-xmedia/libs/libgc/libgc.SlackBuild22
1 files changed, 17 insertions, 5 deletions
diff --git a/media/libs/libgc/libgc.SlackBuild b/media/libs/libgc/libgc.SlackBuild
index de737558..cc3f3b6b 100755
--- a/media/libs/libgc/libgc.SlackBuild
+++ b/media/libs/libgc/libgc.SlackBuild
@@ -17,6 +17,7 @@
# slackbuild for libgc, by Silvio Rhatto
# requires:
# tested: libgc-6.8
+# model: generic.mkSlackBuild $Rev: 805 $
#
# Look for slackbuildrc
@@ -28,7 +29,7 @@ fi
# Set variables
CWD="$(pwd)"
-SRC_NAME="libgc"
+SRC_NAME="gc"
PKG_NAME="libgc"
ARCH=${ARCH:=i486}
SRC_VERSION=${VERSION:=6.8}
@@ -38,6 +39,7 @@ SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME
TMP=${TMP:=/tmp}
PKG=${PKG:=$TMP/package-$PKG_NAME}
REPOS=${REPOS:=$TMP}
+SLACKBUILD_PATH=${SLACKBUILD_PATH:="media/libs/libgc"}
PREFIX=${PREFIX:=/usr}
PKG_WORK="$TMP/$SRC_NAME"
CONF_OPTIONS=${CONF_OPTIONS:=""}
@@ -47,9 +49,9 @@ NUMJOBS=${NUMJOBS:=""}
LIBDIR="$PREFIX/lib"
if [ "$ARCH" = "i386" ]; then
- SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
+ SLKCFLAGS="-O2 -march=i386 -mtune=i686"
elif [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686"
elif [ "$ARCH" = "s390" ]; then
@@ -88,6 +90,15 @@ fi
# Check Manifest file
if [ -e "$CWD/Manifest" ]; then
+ # Manifest signature checking
+ if grep -q -- "-----BEGIN PGP SIGNED MESSAGE-----" $CWD/Manifest; then
+ echo "Checking Manifest signature..."
+ gpg --verify $CWD/Manifest
+ if [ "$?" != "0" ]; then
+ exit $ERROR_MANIFEST
+ fi
+ fi
+
MANIFEST_LINES="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | wc -l`"
for ((MANIFEST_COUNT=1; MANIFEST_COUNT <= $MANIFEST_LINES; MANIFEST_COUNT++)); do
@@ -120,7 +131,7 @@ if [ -e "$CWD/Manifest" ]; then
fi
# Check source code integrity
- for ALGO in md5 sha1 sha256 sha512 rmd160; do
+ for ALGO in md5 rmd160 sha1 sha256 sha512; do
if [ $ALGO = "rmd160" ]; then
ALGO_SRC="`openssl rmd160 $MANIFEST_FILE | awk '{ print $2 }'`"
else
@@ -203,7 +214,8 @@ EODESC
# Build the package
cd "$PKG"
-makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
+mkdir -p $REPOS/$SLACKBUILD_PATH
+makepkg -l y -c n "$REPOS/$SLACKBUILD_PATH/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
# Delete source and build directories if requested
if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then