summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbartus2018-08-24 16:14:15 +0200
committerbartus2018-08-24 16:17:44 +0200
commit9160be656509b32c42b4244a242980f50ec34e1b (patch)
treece86c8cb344878ea6dd374108044f3a76bbd0568
downloadaur-9160be656509b32c42b4244a242980f50ec34e1b.tar.gz
initial
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD42
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..29f87267a06
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = phonon-qt4
+ pkgdesc = The multimedia framework for KDE4
+ pkgver = 4.10.1
+ pkgrel = 1
+ url = http://phonon.kde.org/
+ arch = x86_64
+ license = LGPL
+ makedepends = extra-cmake-modules
+ makedepends = libpulse
+ makedepends = qt4
+ depends = qt4
+ depends = libpulse
+ depends = phonon-qt4-backend
+ optdepends = pulseaudio: PulseAudio support
+ source = http://download.kde.org/stable/phonon/4.10.1/phonon-4.10.1.tar.xz
+ source = http://download.kde.org/stable/phonon/4.10.1/phonon-4.10.1.tar.xz.sig
+ validpgpkeys = CB9387521E1EE0127DA804843FDBB55084CC5D84
+ sha256sums = e5a98df31aeffc22493afc8d6adbca5d6f0c27cc2eed73b3be05195321e08db7
+ sha256sums = SKIP
+
+pkgname = phonon-qt4
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8d804bbc357
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
+pkgname=(phonon-qt4)
+pkgver=4.10.1
+pkgrel=1
+pkgdesc="The multimedia framework for KDE4"
+arch=(x86_64)
+depends=(qt4 libpulse phonon-qt4-backend)
+optdepends=('pulseaudio: PulseAudio support')
+makedepends=(extra-cmake-modules libpulse qt4)
+url='http://phonon.kde.org/'
+license=(LGPL)
+source=("http://download.kde.org/stable/${pkgname%-qt4}/$pkgver/${pkgname%-qt4}-$pkgver.tar.xz"{,.sig})
+sha256sums=('e5a98df31aeffc22493afc8d6adbca5d6f0c27cc2eed73b3be05195321e08db7'
+ 'SKIP')
+validpgpkeys=(CB9387521E1EE0127DA804843FDBB55084CC5D84) # Harald Sitter <sitter@kde.org>
+
+prepare() {
+ mkdir build
+}
+
+build() {
+ cd build
+ cmake ../${pkgname%-qt4}-$pkgver \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \
+ -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ make
+}
+
+package(){
+ cd build
+ make DESTDIR="$pkgdir" install
+
+ # Install headers into the Qt4 dir
+ install -d "$pkgdir"/usr/include/qt4
+ mv "$pkgdir"/usr/include/{phonon,KDE} "$pkgdir"/usr/include/qt4/
+
+ sed -i 's#includedir=/usr/include#includedir=/usr/include/qt4#' \
+ "$pkgdir/usr/lib/pkgconfig/phonon.pc"
+}