diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2008-12-26 16:13:11 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2008-12-26 16:13:11 +0000 |
commit | 03a2a69f4106f05866e743dfce64427010c9d738 (patch) | |
tree | a6f3e688690eb0783982774bd63ee4f98db3091a | |
parent | 947255a8835af8f35060d788b2172596ccd9e9af (diff) | |
download | slackbuilds-03a2a69f4106f05866e743dfce64427010c9d738.tar.gz slackbuilds-03a2a69f4106f05866e743dfce64427010c9d738.tar.bz2 |
glibmm.mkbuild glibmm: downgrading to 2.12.10 and adding manifest
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2033 370017ae-e619-0410-ac65-c121f96126d4
-rw-r--r-- | dev/cpp/glibmm/Manifest | 6 | ||||
-rw-r--r-- | dev/cpp/glibmm/glibmm.SlackBuild | 64 |
2 files changed, 67 insertions, 3 deletions
diff --git a/dev/cpp/glibmm/Manifest b/dev/cpp/glibmm/Manifest new file mode 100644 index 00000000..059d315d --- /dev/null +++ b/dev/cpp/glibmm/Manifest @@ -0,0 +1,6 @@ +DIST glibmm-2.12.10.tar.bz2 2360587 MD5 85830693d669f0d86d6e64db3b57f581 SHA1 361466df6302ec5626a87e75786da4c7c39ffe14 SHA256 21b760b1567f9fcd9ea5244f02fdb0583852f7f4c513ab83726a1a076093320b SHA512 e5eeb566def18a761491e93c4db4d8e637cc0ea1f39c03d41c879d1466158c508b50085bc8f586bf826ffb266c99966f0e66d0851e5f613d443b6929b15ce1fd RMD160 9fae22e3d99e9867e22ec19d7d66129e2befb6cb +MISC glibmm.diff 642 MD5 1a594ff7df367f054fedfc91f271f39d SHA1 0ba6f6b47a264820e379b9ce365f9d37a324d471 SHA256 124871f45a33545baa33a097e192879a07fe21e841c8730d908b1a11979227a6 SHA512 c804e16cbf30ea71767d24297886e306dcca17520c2f6dee9db13b4f3d3b1b8af3882f66ccc821b3303cadab77c1de87408ed0654f34c8756dbc38b2808b56c9 RMD160 4f8c849ff07a89f23afa247916fdb415e8cb80cc +MKBUILD glibmm.mkbuild 2808 MD5 1d17aa9f06f2ef845c69b005c63c9259 SHA1 4580bd320223cbe4845eaef0d03c436bb4328d1c SHA256 7f5e303d79e505465137c3482ad755fa0316ecc64f2b67e0404732156c417498 SHA512 f5ebae52f5ae07188297ccaf3e3ffcfd219aa3e7b1002594a6ce49e222eb6b1735bcb188db31d8f7010224a77f4cb5b62b09c8948053d66f14e1fa37af58d596 RMD160 1871a96fd068d2efe1786976b6eccdbe514947f9 +PATCH glibmm.diff 642 MD5 1a594ff7df367f054fedfc91f271f39d SHA1 0ba6f6b47a264820e379b9ce365f9d37a324d471 SHA256 124871f45a33545baa33a097e192879a07fe21e841c8730d908b1a11979227a6 SHA512 c804e16cbf30ea71767d24297886e306dcca17520c2f6dee9db13b4f3d3b1b8af3882f66ccc821b3303cadab77c1de87408ed0654f34c8756dbc38b2808b56c9 RMD160 4f8c849ff07a89f23afa247916fdb415e8cb80cc +SLACK-REQUIRED slack-required 143 MD5 df437e4db2c434ceecd0a44d225abe1e SHA1 615c0e66427747308a8be6b07fbf25e020cf8e3f SHA256 583b22c58d775e2654c5636021f26085fee7657fedf0694698adbe803140ec4e SHA512 7fbe29d6c7812234295f4a09d21f0d3dd5f61258bddd6953958281cb756118d6e31280539763a7176c01b27d5fb1eff7885a6cd0afe1b8806a03e3837f85159e RMD160 824206d428e468e600a26607aeb08758703107d6 +SLACKBUILD glibmm.SlackBuild 6812 MD5 9f982f749e374cbf02a0f83443899dc1 SHA1 e59470fabef6f42c2ddf081f5ba6ae8e46c5999c SHA256 0ea6d17481a4980979acc81a438b248aa76e5ac45e609deefaff4b1327f347b7 SHA512 d230b740ae6de42353c924b07553d9b2bc97974b4037ef55b10d6b223b1c97c7753ecfefb49f177cba57c3e3026f168d3bf5c446be8aa9ca2de813db2ab1df60 RMD160 897b0e51146837792e3fe8b4fb3d21fe9dcc7130 diff --git a/dev/cpp/glibmm/glibmm.SlackBuild b/dev/cpp/glibmm/glibmm.SlackBuild index 84b66026..adf44c74 100644 --- a/dev/cpp/glibmm/glibmm.SlackBuild +++ b/dev/cpp/glibmm/glibmm.SlackBuild @@ -16,7 +16,7 @@ # # slackbuild for glibmm, by Silvio Rhatto # requires: libsigc++ glib -# tested: glibmm-2.16.4 +# tested: glibmm-2.12.10 # # Look for slackbuildrc @@ -31,7 +31,7 @@ CWD="$(pwd)" SRC_NAME="glibmm" PKG_NAME="glibmm" ARCH=${ARCH:=i486} -SRC_VERSION=${VERSION:=2.16.4} +SRC_VERSION=${VERSION:=2.12.10} PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')" BUILD=${BUILD:=1rha} 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 @@ -78,12 +79,69 @@ mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR # Dowload source if necessary SRC="$SRC_NAME-$VERSION.tar.bz2" -URL="http://ftp.acc.umu.se/pub/GNOME/sources/glibmm/2.16/$SRC" +URL="http://ftp.acc.umu.se/pub/GNOME/sources/glibmm/2.12/$SRC" if [ ! -s "$SRC_DIR/$SRC" ] || ! bunzip2 -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 |