aboutsummaryrefslogtreecommitdiff
path: root/media/sound/jack
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2009-01-01 16:15:01 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2009-01-01 16:15:01 +0000
commit8fd1cf005cc91d95e7e8701e139ac4e27ca115b1 (patch)
tree46291268479b5283e829894f83c8e5445520438e /media/sound/jack
parent41fb9e7a2a33e92e7c6ab0e5249e685259dee6ea (diff)
downloadslackbuilds-8fd1cf005cc91d95e7e8701e139ac4e27ca115b1.tar.gz
slackbuilds-8fd1cf005cc91d95e7e8701e139ac4e27ca115b1.tar.bz2
jack: updating to 0.116.1
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2050 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'media/sound/jack')
-rw-r--r--media/sound/jack/Manifest4
-rwxr-xr-xmedia/sound/jack/jack.SlackBuild62
2 files changed, 64 insertions, 2 deletions
diff --git a/media/sound/jack/Manifest b/media/sound/jack/Manifest
new file mode 100644
index 00000000..33aad04a
--- /dev/null
+++ b/media/sound/jack/Manifest
@@ -0,0 +1,4 @@
+DIST jack-audio-connection-kit-0.116.1.tar.gz 943593 MD5 f2aeb463466084dfdc0ba4360b4998aa SHA1 2fb1e4bcc3fe8cf18024d3ead93eb4e4fcef5e69 SHA256 da3e6133e4f0305d8a0759563b074722ab97894a81b8925a058bc4714f7e4fd9 SHA512 64982dc15c05cb0aaeda1fa9f0974eff608e4a399fa0c4728a7e1e5726d9aa4601f026d24d1dcceb4576b6c5b8ee79bbbfe6a0b405dc88bc8a796f3d23297e62 RMD160 a13ab20b747d0cfd8551e5e2874fd249184078d0
+MKBUILD jack.mkbuild 4480 MD5 d36cb3a24535e85dd057b6639fdb9cb3 SHA1 03477910b31cbe7a25fd3b07e67706c27103e5b2 SHA256 a3bdcb796f98d797a3d886bb4a5caceeaca4d7742af29216eb20f30e87971f51 SHA512 c4a046cc136c01b943074f64561c3203507b0d9b9de45fa5ca54ebbafea93a723b2fcc666e3a033141c61000f276f12be96330b57729dcd67cfb9c1550270fb1 RMD160 b734533d387b3431ea11998db064b5ce3df69827
+SLACK-REQUIRED slack-required 115 MD5 b962d0f059b2ecfaf7a03612225ecc98 SHA1 fcfc8b57e09d0989097a937c334de921f9d6c983 SHA256 21d362e029fd63d0d09e7660ef129d17b720da926ac5f9ea43927e540e73ee46 SHA512 b768d3af157137aebe4dc951c50ffe748f3a56f3dccb3095835882185eb3346b1a20785deb47ea19abe092955c8e5a1b6af2fb490b9056e2aee5ffdee17ccb00 RMD160 55abed01544527ba0e85c0ea7a2f04cd8272ae12
+SLACKBUILD jack.SlackBuild 7022 MD5 3528669f59472c4ab0695541814d5684 SHA1 0e9fd1b7c27156aee0f8e633f9b1230835b8dad3 SHA256 e39e37e650bf05f526ce4a40ca3668b6c62b435e83e7eb161c6c6141b242e31b SHA512 e3d575445cc550173106554c32dfe6920b4d9dbd9feeec9c42444da902a1888d9eb381fc28829fd48f099203b6d9a9db1e864a1b619c2d59c81c320bb3857bba RMD160 12243681e7fcc3e8780e72d46ef8373c45504386
diff --git a/media/sound/jack/jack.SlackBuild b/media/sound/jack/jack.SlackBuild
index f568cab3..cbf92fe1 100755
--- a/media/sound/jack/jack.SlackBuild
+++ b/media/sound/jack/jack.SlackBuild
@@ -16,7 +16,7 @@
#
# slackbuild for jack, by Rudson R. Alves
# requires: libsndfile libfreebob
-# tested: jack-0.109.2
+# tested: jack-0.116.1
#
# Look for slackbuildrc
@@ -31,7 +31,7 @@ CWD="$(pwd)"
SRC_NAME="jack-audio-connection-kit"
PKG_NAME="jack"
ARCH=${ARCH:=i486}
-SRC_VERSION=${VERSION:=0.109.2}
+SRC_VERSION=${VERSION:=0.116.1}
PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')"
BUILD=${BUILD:=1rra}
SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME
@@ -65,6 +65,7 @@ ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36
ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42
+ERROR_MANIFEST=43;
# Clean up any leftovers of previous builds
rm -rf "$PKG_WORK" 2> /dev/null
@@ -84,6 +85,63 @@ if [ ! -s "$SRC_DIR/$SRC" ] || ! gunzip -t "$SRC_DIR/$SRC" 2> /dev/null; then
wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET
fi
+# Check Manifest file
+if [ -e "$CWD/Manifest" ]; then
+
+ MANIFEST_LINES="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | wc -l`"
+
+ for ((MANIFEST_COUNT=1; MANIFEST_COUNT <= $MANIFEST_LINES; MANIFEST_COUNT++)); do
+
+ MANIFEST_LINE="`grep -E -v "^(MKBUILD|SLACKBUILD)" $CWD/Manifest | head -n $MANIFEST_COUNT | tail -n 1`"
+ MANIFEST_FILE="`echo $MANIFEST_LINE | awk '{ print $2 }'`"
+ MANIFEST_FILE_TYPE="`echo $MANIFEST_LINE | awk '{ print $1 }'`"
+
+ if [ -e "$SRC_DIR/$MANIFEST_FILE" ]; then
+ MANIFEST_FILE="$SRC_DIR/$MANIFEST_FILE"
+ else
+ MANIFEST_FILE="`find $CWD -name $MANIFEST_FILE`"
+ fi
+
+ if [ ! -e "$MANIFEST_FILE" ] || [ -d "$MANIFEST_FILE" ]; then
+ continue
+ fi
+
+ echo "Checking Manifest for $MANIFEST_FILE_TYPE $MANIFEST_FILE integrity..."
+
+ SIZE_SRC="`wc -c $MANIFEST_FILE | awk '{ print $1 }'`"
+ SIZE_MANIFEST="`echo $MANIFEST_LINE | awk '{ print $3 }'`"
+
+ # Check source code size
+ if [ "$SIZE_SRC" != "$SIZE_MANIFEST" ]; then
+ echo "SIZE Manifest: $SIZE_MANIFEST; SIZE $SRC: $SIZE_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "Size match."
+ fi
+
+ # Check source code integrity
+ for ALGO in md5 sha1 sha256 sha512 rmd160; do
+ if [ $ALGO = "rmd160" ]; then
+ ALGO_SRC="`openssl rmd160 $MANIFEST_FILE | awk '{ print $2 }'`"
+ else
+ ALGO_SRC="`"$ALGO"sum $MANIFEST_FILE | awk '{ print $1 }'`"
+ fi
+ ALGO="`echo $ALGO | tr '[:lower:]' '[:upper:]'`"
+ ALGO_MANIFEST=$(echo $MANIFEST_LINE | sed "s/.* $ALGO //" | awk '{ print $1 }')
+ if [ "$ALGO_SRC" != "$ALGO_MANIFEST" ]; then
+ echo "$ALGO Manifest: $ALGO_MANIFEST; $ALGO $SRC: $ALGO_SRC"
+ exit $ERROR_MANIFEST
+ else
+ echo "$ALGO match."
+ fi
+ done
+
+ done
+
+else
+ exit $ERROR_MANIFEST
+fi
+
# Untar
cd "$PKG_WORK"
tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR