diff options
author | sl1pkn07 | 2015-06-08 19:15:35 +0200 |
---|---|---|
committer | sl1pkn07 | 2015-06-08 19:17:21 +0200 |
commit | 5373e3cd669d7a3933b643bb53171dddca0a5ac7 (patch) | |
tree | 132c39bd8e2ecedaff42b27a9529f838075a3b4a | |
download | aur-5373e3cd669d7a3933b643bb53171dddca0a5ac7.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | CMakeLists.txt.patch | 13 | ||||
-rw-r--r-- | PKGBUILD | 53 | ||||
-rw-r--r-- | fix_find_config.patch | 23 |
5 files changed, 122 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9b979bda6bc6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = phonon-mplayer-git + pkgdesc = Mplayer backend for phonon, the multimedia API of KDE. (Qt4 only) GIT version) + pkgver = 20120714.7217499 + pkgrel = 1 + url = https://projects.kde.org/projects/unmaintained/phonon-mplayer + arch = i686 + arch = x86_64 + license = LGPL + makedepends = cmake + makedepends = automoc4 + makedepends = git + makedepends = phonon-qt4 + depends = mplayer + provides = phonon-backend + provides = phonon-qt4-backend + provides = phonon-qt4-mplayer + conflicts = phonon-qt4-mplayer + replaces = phonon-mplayer + source = git://anongit.kde.org/phonon-mplayer.git + source = fix_find_config.patch + source = CMakeLists.txt.patch + sha1sums = SKIP + sha1sums = ab6c195ebda7a89383edd127bf159c557859993e + sha1sums = 139e1d7c8e8f64374ebd47ec7306f1701c0653d9 + +pkgname = phonon-mplayer-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..361b59891346 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD +!CMakeLists.txt.patch +!fix_find_config.patch diff --git a/CMakeLists.txt.patch b/CMakeLists.txt.patch new file mode 100644 index 000000000000..ac77d62c79fc --- /dev/null +++ b/CMakeLists.txt.patch @@ -0,0 +1,13 @@ +--- CMakeLists.txt 2013-11-08 00:52:55.390713402 +0100 ++++ CMakeLists.txt.orig 2013-11-08 00:53:37.140909984 +0100 +@@ -16,10 +16,6 @@ + # Includes all wanted definitions for Qt + include(${QT_USE_FILE}) + +-# Remove all Qt modules from include path since there are not needed +-include(cmake/ReduceQtIncludeDirs.cmake) +-reduce_qt_include_dirs() +- + + macro(_SET_FANCY _var _value _comment) + if (KDESupport_SOURCE_DIR) diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a8a643a54add --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com> +# Contributor: Jekyll Wu <adaptee at gmail dot com> +# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com> +# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com> +# Contributor: Rick W. Chen <stuffcorpse@archlinux.us> +# Contributor: Pierre Schmitz <pierre@archlinux.de> +# Contributor: Marek Kubica <marek@xivilization.net> + +pkgname=phonon-mplayer-git +pkgver=20120714.7217499 +pkgrel=1 +pkgdesc="Mplayer backend for phonon, the multimedia API of KDE. (Qt4 only) GIT version)" +arch=("i686" "x86_64") +url="https://projects.kde.org/projects/unmaintained/phonon-mplayer" +license=("LGPL") +depends=('mplayer') +makedepends=('cmake' 'automoc4' 'git' phonon-qt4) +provides=('phonon-backend' 'phonon-qt4-backend' 'phonon-qt4-mplayer') +conflicts=('phonon-qt4-mplayer') +replaces=('phonon-mplayer') +source=('git://anongit.kde.org/phonon-mplayer.git' + 'fix_find_config.patch' + 'CMakeLists.txt.patch') +sha1sums=('SKIP' + 'ab6c195ebda7a89383edd127bf159c557859993e' + '139e1d7c8e8f64374ebd47ec7306f1701c0653d9') + +pkgver() { + cd phonon-mplayer + echo "$(git log -1 --format="%cd" --date=short | tr -d '-').$(git log -1 --format="%h")" +} + +prepare() { + mkdir -p build + + patch -d phonon-mplayer -Np1 -i ../fix_find_config.patch + patch -d phonon-mplayer -Np0 -i ../CMakeLists.txt.patch +} + +build() { + cd build + [ ${CARCH} = 'x86_64' ] && CXXFLAGS+=" -fPIC" + cmake ../phonon-mplayer \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_SKIP_RPATH=ON + make +} + + +package () { + make -C build DESTDIR="${pkgdir}" install +} diff --git a/fix_find_config.patch b/fix_find_config.patch new file mode 100644 index 000000000000..145538679e36 --- /dev/null +++ b/fix_find_config.patch @@ -0,0 +1,23 @@ +diff -aur phonon-mplayer/mplayer/libmplayer/MPlayerConfig.cpp phonon-mplayer2/mplayer/libmplayer/MPlayerConfig.cpp +--- phonon-mplayer/mplayer/libmplayer/MPlayerConfig.cpp 2011-11-24 18:06:31.105227140 -0800 ++++ phonon-mplayer2/mplayer/libmplayer/MPlayerConfig.cpp 2011-11-24 18:17:02.000000000 -0800 +@@ -73,7 +73,7 @@ + //Under Windows, config file should be inside a subdirectory named mplayer/mplayer + QString defaultMPlayerConfigPath = "mplayer/mplayer/config"; + #else +- QString defaultMPlayerConfigPath = "~/.mplayer/config"; ++ QString defaultMPlayerConfigPath = QDir::homePath()+"/.mplayer/config"; + #endif + + return _settings.value("mplayer_config_path", defaultMPlayerConfigPath).toString(); +diff -aur phonon-mplayer/mplayer/libmplayer/MPlayerConfig.h phonon-mplayer2/mplayer/libmplayer/MPlayerConfig.h +--- phonon-mplayer/mplayer/libmplayer/MPlayerConfig.h 2011-11-24 18:06:31.105227140 -0800 ++++ phonon-mplayer2/mplayer/libmplayer/MPlayerConfig.h 2011-11-24 18:18:05.000000000 -0800 +@@ -21,6 +21,7 @@ + + #include <QtCore/QString> + #include <QtCore/QSettings> ++#include <QtCore/QDir> + + namespace Phonon + { |