diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2009-04-25 18:18:20 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2009-04-25 18:18:20 +0000 |
commit | d31e9dd698f3287d6b972113047781339921851e (patch) | |
tree | 70b26dbd3f40cf2e0c0a8dbc28d997cd893dbc64 /media/video/mpeg2dec | |
parent | ef039a84dfd7c5de2f77e47f135948119e8ef161 (diff) | |
download | slackbuilds-d31e9dd698f3287d6b972113047781339921851e.tar.gz slackbuilds-d31e9dd698f3287d6b972113047781339921851e.tar.bz2 |
vlc: updating vlc, dependencies and other stuff
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2157 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'media/video/mpeg2dec')
-rw-r--r-- | media/video/mpeg2dec/Manifest | 23 | ||||
-rwxr-xr-x | media/video/mpeg2dec/mpeg2dec.SlackBuild | 91 |
2 files changed, 104 insertions, 10 deletions
diff --git a/media/video/mpeg2dec/Manifest b/media/video/mpeg2dec/Manifest new file mode 100644 index 00000000..fedf500c --- /dev/null +++ b/media/video/mpeg2dec/Manifest @@ -0,0 +1,23 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST mpeg2dec-0.4.1.tar.gz 494539 MD5 7631b0a4bcfdd0d78c0bb0083080b0dc RMD160 5377ae45abdd37fabcea6d3d0a9d74e493b84483 SHA1 80be8b16dff4caa4253470d1a3b563fdc0177fcb SHA256 c74a76068f8ec36d4bb59a03bf1157be44118ca02252180e8b358b0b5e3edeee SHA512 7be820ada1f2194d3c15867612e65af16a8cdfb637f2e974a884026b6b97c4bb71232951889ef428b87401db74a551ec614f421639384cac40f3bcb361e48393 +MKBUILD mpeg2dec.mkbuild 2637 MD5 bef364b44ad99259fe65b3629cec7cf1 RMD160 4b3d5747a6a2b98d8f08beb4f20a6068abbec865 SHA1 66ff45060e6b937725ba334df3ce1ffbd424082c SHA256 06c2e5502b97c46b1629d275a9fe8c905672221cdfc9510d055a08039e1a56fe SHA512 07cc2ef0b8fcb8d661d0cd7ed525c9a9b3cf037500fd882ce32ce0ed05aa47f3e2c1f6b82db0441bff7270ddd1e129dc6b65cc44f3d77ba76195b4757b8775e1 +SLACKBUILD mpeg2dec.SlackBuild 6878 MD5 584e17cb255fcbd5bdffaa773c743963 RMD160 e449a22193af22e486e3dd72eea75d65ffd1395b SHA1 b529c95fc481ec968ce81d89a3b9dfde6a22dce9 SHA256 6594648cf8083fa300cad5f09e11830ecae24055c272c6c59746f3ef38121b5c SHA512 7c85c408e15e3af670425767eaebc47dd3fa72185b811d98bb7e9c554270c6283995d9c58de4100bf80c75a59d66cee8bbfe705c146860382a0d5ca3567d00a0 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iQIcBAEBAgAGBQJJ80PLAAoJEEHL93ESzgeimhAQAKQceW/wOGjyVHZ1SUUOPJXh +HJcwgCQW9p0PencUklVclqN059f9o66Sc4fca++7vpZiapx6hRNUZa1gSwssYAAY +JocEkos92s4UnSWjVOCJ3v6SOrfVHVDKyaqs9sZp0i4NiCLZU7BIvzRLbAoG7YPt +hiFbVP6YmLCGxrCHXrPfun97VwpzVy4sG3cLc1f+E7OvjD4n+1bZsskdLVQfpBo3 +xJZrz214lcFTVi7sCcBHBze01J9SIkeRx76RC4966Cnp4IoK1tc47v9Bdw4r3way +wgJVlMpZMKRX09ZCyv/VEcgjxbupg6SABD/Lqqhy205nscWuuIzr6E2tiVXC++c+ +m92lTWsRd8wgxVRLZc05JST9nmfMsSoW70f6LFoWs8qqs/epEqZH5Rz865LR7Mpy +tjW/kfnSvuFfD61dya8T8yu5iQMKJq5QMagp+Ivky7TNjV2DFZm/DhmhDWL68GgG +P8iJVewnpIAP6rzYFmLGOSj+xMxH3bXogbeJUbblAeCFmy5Qr3Sd8gTJmtRSCDk3 +eLJN7mxWwBYbiveHlFhzEHsF4zd5V8YLqc3W0+ol8E0B46yAcsNPgIfjVvz40XUD +b+fJxz86ldOIo3MnuDVKPqfV58V6erQz08PvOXUNtx9HxW3S2R/VzmomZCugnQv2 +iQ8N+Ajb0YFDZDbVDdk+ +=tCxg +-----END PGP SIGNATURE----- diff --git a/media/video/mpeg2dec/mpeg2dec.SlackBuild b/media/video/mpeg2dec/mpeg2dec.SlackBuild index 190eb3fa..2097581e 100755 --- a/media/video/mpeg2dec/mpeg2dec.SlackBuild +++ b/media/video/mpeg2dec/mpeg2dec.SlackBuild @@ -10,13 +10,14 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# this program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place - Suite 330, Boston, MA 02111-1307, USA +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA # # slackbuild for mpeg2dec, by Silvio Rhatto # requires: # tested: mpeg2dec-0.4.1 +# model: generic.mkSlackBuild $Rev: 805 $ # # Look for slackbuildrc @@ -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/video/mpeg2dec"} 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 @@ -57,6 +59,7 @@ elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIR="$PREFIX/lib64" + LDFLAGS="-L/lib64 -L/usr/lib64" fi # Set error codes (used by createpkg) @@ -64,6 +67,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 @@ -83,10 +87,76 @@ 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 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 + + 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 rmd160 sha1 sha256 sha512; 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 -PKG_SRC="$PWD/`ls -l | awk '/^d/ { print $8 }'`" +PKG_SRC="$PWD/`ls -l | awk '/^d/ { print $NF }'`" cd "$PKG_SRC" # Configure @@ -122,9 +192,9 @@ done mkdir -p "$PKG/install" || exit $ERROR_MKDIR cat << EODESC > "$PKG/install/slack-desc" # HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line +# The "handy ruler" below makes it easier to edit a package description. Line # up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must +# on the right side marks the last column you can put a character in. You must # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. @@ -144,9 +214,10 @@ 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" ]; then +if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then rm -rf "$PKG_WORK" "$PKG" fi |