summaryrefslogtreecommitdiff
path: root/multimedia/minitube
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-12 21:44:39 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-13 17:58:11 -0500
commitf71725b388a7251b8861bf0df14a96e004a4e14f (patch)
tree2ea06883d78bf30e5afc7e10f628fc0da1d815d3 /multimedia/minitube
parent85a2333b6b92c6b7689bf6c4acad9551caaf5953 (diff)
downloadslackbuilds-f71725b388a7251b8861bf0df14a96e004a4e14f.tar.gz
multimedia/minitube: Updated for version 1.8.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'multimedia/minitube')
-rw-r--r--multimedia/minitube/minitube-gcc47.patch11
-rw-r--r--multimedia/minitube/minitube.SlackBuild11
-rw-r--r--multimedia/minitube/minitube.info6
3 files changed, 21 insertions, 7 deletions
diff --git a/multimedia/minitube/minitube-gcc47.patch b/multimedia/minitube/minitube-gcc47.patch
new file mode 100644
index 0000000000..6283b1fe99
--- /dev/null
+++ b/multimedia/minitube/minitube-gcc47.patch
@@ -0,0 +1,11 @@
+diff -Naur minitube-20120813_338dac6.orig/src/qtsingleapplication/qtlocalpeer.cpp minitube-20120813_338dac6/src/qtsingleapplication/qtlocalpeer.cpp
+--- minitube-20120813_338dac6.orig/src/qtsingleapplication/qtlocalpeer.cpp 2012-08-13 17:09:04.000000000 +0200
++++ minitube-20120813_338dac6/src/qtsingleapplication/qtlocalpeer.cpp 2012-09-12 13:00:44.330889268 +0200
+@@ -58,6 +58,7 @@
+ #endif
+ #if defined(Q_OS_UNIX)
+ #include <time.h>
++#include <unistd.h>
+ #endif
+
+ namespace QtLP_Private {
diff --git a/multimedia/minitube/minitube.SlackBuild b/multimedia/minitube/minitube.SlackBuild
index 1f3ca32e95..20e82f0543 100644
--- a/multimedia/minitube/minitube.SlackBuild
+++ b/multimedia/minitube/minitube.SlackBuild
@@ -24,7 +24,7 @@
# Version number bumped by /dev/ammo42
PRGNAM=minitube
-VERSION=${VERSION:-1.5}
+VERSION=${VERSION:-1.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,9 +60,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -70,6 +70,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Fix building with gcc-4.7.x
+patch -p1 < $CWD/minitube-gcc47.patch
+
qmake
# Use our SLKCFLAGS plus the hardcoded ones from the Makefile
make \
diff --git a/multimedia/minitube/minitube.info b/multimedia/minitube/minitube.info
index 35fdcbb209..0ce5e5267c 100644
--- a/multimedia/minitube/minitube.info
+++ b/multimedia/minitube/minitube.info
@@ -1,8 +1,8 @@
PRGNAM="minitube"
-VERSION="1.5"
+VERSION="1.8"
HOMEPAGE="http://flavio.tordini.org/minitube"
-DOWNLOAD="http://flavio.tordini.org/files/minitube/minitube-1.5.tar.gz"
-MD5SUM="27929edeaf68c5062a8c2fb7b7403016"
+DOWNLOAD="http://ponce.cc/slackware/sources/repo/minitube-1.8.tar.xz"
+MD5SUM="c722e08f2b95bd6a9df7d6765427c9a6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""