diff options
author | David Woodfall <dave@dawoodfall.net> | 2017-05-01 18:04:10 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-05-02 08:37:44 +0700 |
commit | 44de397bd33ded44bd70b1df19e4ff3576b60b88 (patch) | |
tree | 6fc4154ac87140875181b539ecc890b58ab8e310 /multimedia/AtomicParsley | |
parent | e467fcd634b7402f36b7f063920d280d0b94f706 (diff) |
multimedia/AtomicParsley: Added (mpeg4 tag tool).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/AtomicParsley')
-rw-r--r-- | multimedia/AtomicParsley/AtomicParsley.SlackBuild | 90 | ||||
-rw-r--r-- | multimedia/AtomicParsley/AtomicParsley.info | 10 | ||||
-rw-r--r-- | multimedia/AtomicParsley/README | 4 | ||||
-rw-r--r-- | multimedia/AtomicParsley/build-fix.patch | 12 | ||||
-rw-r--r-- | multimedia/AtomicParsley/slack-desc | 19 |
5 files changed, 135 insertions, 0 deletions
diff --git a/multimedia/AtomicParsley/AtomicParsley.SlackBuild b/multimedia/AtomicParsley/AtomicParsley.SlackBuild new file mode 100644 index 0000000000000..51578beb3e41f --- /dev/null +++ b/multimedia/AtomicParsley/AtomicParsley.SlackBuild @@ -0,0 +1,90 @@ +#!/bin/sh + +# Slackware build script for AtomicParsley +# Copyright 2017 David Woodfall <dave@dawoodfall.net> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=AtomicParsley +SRCNAM=AtomicParsley-source +VERSION=${VERSION:-0.9.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf __MACOSX +rm -rf $SRCNAM-$VERSION +unzip $CWD/$SRCNAM-$VERSION.zip +cd $SRCNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +patch -p1 <$CWD/build-fix.patch +./build + +mkdir -p $PKG/usr/bin +cp AtomicParsley $PKG/usr/bin + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a Using\ AtomicParsley.rtf $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/multimedia/AtomicParsley/AtomicParsley.info b/multimedia/AtomicParsley/AtomicParsley.info new file mode 100644 index 0000000000000..c13e954290a07 --- /dev/null +++ b/multimedia/AtomicParsley/AtomicParsley.info @@ -0,0 +1,10 @@ +PRGNAM="AtomicParsley" +VERSION="0.9.0" +HOMEPAGE="http://atomicparsley.sourceforge.net" +DOWNLOAD="https://downloads.sourceforge.net/project/atomicparsley/atomicparsley/AtomicParsley%20v0.9.0/AtomicParsley-source-0.9.0.zip" +MD5SUM="681e6ecec2921c98e07a9262bdcd6cf2" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="David Woodfall" +EMAIL="dave@dawoodfall.net" diff --git a/multimedia/AtomicParsley/README b/multimedia/AtomicParsley/README new file mode 100644 index 0000000000000..640dcfea21fc4 --- /dev/null +++ b/multimedia/AtomicParsley/README @@ -0,0 +1,4 @@ +AtomicParsley (mpeg4 tag tool) + +AtomicParsley is a lightweight command line program for reading, +parsing and setting metadata into MPEG-4 files. diff --git a/multimedia/AtomicParsley/build-fix.patch b/multimedia/AtomicParsley/build-fix.patch new file mode 100644 index 0000000000000..253dbd1c02283 --- /dev/null +++ b/multimedia/AtomicParsley/build-fix.patch @@ -0,0 +1,12 @@ +diff -Naur a/build b/build +--- a/build 2006-09-10 16:02:58.000000000 +0100 ++++ b/build 2017-05-01 06:05:08.309903881 +0100 +@@ -61,7 +61,7 @@ + + echo "Compiling AtomicParsley.cpp ..." + +-g++ -g -O2 -Wall -Wno-unused $EXTRA_CPP_FLAGS -MT obj_files/AtomicParsley.o -MD -MP -MF "./obj_files/AtomicParsley.Tpo" -c -o obj_files/AtomicParsley.o AtomicParsley.cpp ++g++ -fpermissive -g -O2 -Wall -Wno-unused $EXTRA_CPP_FLAGS -MT obj_files/AtomicParsley.o -MD -MP -MF "./obj_files/AtomicParsley.Tpo" -c -o obj_files/AtomicParsley.o AtomicParsley.cpp + + echo "Compiling AP_AtomExtracts.cpp ..." + diff --git a/multimedia/AtomicParsley/slack-desc b/multimedia/AtomicParsley/slack-desc new file mode 100644 index 0000000000000..aa8d90b5b9def --- /dev/null +++ b/multimedia/AtomicParsley/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# 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 make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +AtomicParsley: AtomicParsley (mpeg4 tag tool) +AtomicParsley: +AtomicParsley: AtomicParsley is a lightweight command line program for reading, +AtomicParsley: parsing and setting metadata into MPEG-4 files. +AtomicParsley: +AtomicParsley: http://atomicparsley.sourceforge.net +AtomicParsley: +AtomicParsley: +AtomicParsley: +AtomicParsley: +AtomicParsley: |