summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-29 10:49:49 +0200
committerMatteo Bernardini <ponce@slackbuilds.org>2012-09-29 10:50:38 +0200
commit4208b170d6b8fd0296a828075a0bf9e45faa6ef2 (patch)
tree5993e4b28c0bfba65c94e4bbc3862235332f73d6
parent732050978d4840205fac8ac4369c589f28b9775f (diff)
downloadslackbuilds-4208b170d6b8fd0296a828075a0bf9e45faa6ef2.tar.gz
audio/aacgain: Fixed applying of patches.
This because of the new /usr/bin/patch Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--audio/aacgain/aacgain.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/audio/aacgain/aacgain.SlackBuild b/audio/aacgain/aacgain.SlackBuild
index 658c008dd4..3764fb457d 100644
--- a/audio/aacgain/aacgain.SlackBuild
+++ b/audio/aacgain/aacgain.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=aacgain
VERSION=1.9
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -97,9 +97,11 @@ cd $PRGNAM
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-patch -p0 -i mp4v2.patch
-
+# The new patch program forces us to change a little how patches are applied
+cd ../mp3gain
+patch -p3 -i ../$PRGNAM/linux/mp3gain.patch
cd ../mp4v2
+patch -p2 -i ../$PRGNAM/mp4v2.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -121,6 +123,8 @@ make
cd ../../aacgain/linux
+# This don't work
+sed -i "s|^patch|#patch|" ./prepare.sh
chmod +x ./prepare.sh
./prepare.sh