initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

88
phonon/PKGBUILD Normal file
View File

@@ -0,0 +1,88 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgbase=phonon
pkgname=('phonon-qt4' 'phonon-qt5')
pkgver=4.9.1
_debver=4.9.1
_debrel=1
pkgrel=2.hyperbola2
arch=('i686' 'x86_64')
url='https://phonon.kde.org/'
license=('LGPL-2.1')
makedepends=('extra-cmake-modules' 'automoc4' 'qt5-base' 'qt5-tools' 'quilt')
source=("https://download.kde.org/stable/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.xz"{,.sig}
"https://deb.debian.org/debian/pool/main/p/phonon/phonon_$_debver-$_debrel.debian.tar.xz")
sha512sums=('a1741765071a625d9b9073d9ad1571b91cf5bfce2223bd1b034828d02dc52624587a6ec5352f3702df79f6e4201007596843fbcb9f15c9b489a858200787d728'
'SKIP'
'd8957a031d75966c1b08edc5c881d6c0f8812652fc5ec452127862ef254372852e7ea83e64c23f9b7c3e6f363fd34fea444e5ae32c0c1a2c6b99f49a122640e2')
validpgpkeys=(CB9387521E1EE0127DA804843FDBB55084CC5D84) # Harald Sitter <sitter@kde.org>
prepare() {
mkdir build
mkdir build-qt5
cd ${pkgbase}-${pkgver}
if [[ $pkgver = $_debver ]]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian .
quilt push -av
fi
}
build() {
cd build
cmake ../${pkgbase}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \
-DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 \
-D__KDE_HAVE_GCC_VISIBILITY=NO \
-DCMAKE_INSTALL_LIBDIR=lib
make
cd ../build-qt5
cmake ../${pkgbase}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \
-DPHONON_BUILD_PHONON4QT5=ON \
-D__KDE_HAVE_GCC_VISIBILITY=NO \
-DCMAKE_INSTALL_LIBDIR=lib
make
}
package_phonon-qt4(){
pkgdesc="The multimedia framework for KDE4, without pulseaudio recommendation and without libpulse and libqzeitgeist support"
optdepends=('phonon-qt4-vlc: VLC backend' 'phonon-qt4-gstreamer: GStreamer backend')
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"
install -Dm644 ../${pkgbase}-${pkgver}/COPYING.LIB "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING.LIB
}
package_phonon-qt5(){
pkgdesc="The multimedia framework for KF5, without pulseaudio recommendation and without libpulse support"
depends=('qt5-base')
optdepends=('phonon-qt5-vlc: VLC backend' 'phonon-qt5-gstreamer: GStreamer backend')
cd build-qt5
make DESTDIR="${pkgdir}" install
install -Dm644 ../${pkgbase}-${pkgver}/COPYING.LIB "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING.LIB
}

23
phonon/qt-5.4.2.patch Normal file
View File

@@ -0,0 +1,23 @@
From: Hrvoje Senjan <hrvoje.senjan@gmail.com>
Date: Thu, 28 May 2015 15:56:47 +0000
Subject: Yet another _include_dirs fix
X-Git-Url: http://quickgit.kde.org/?p=phonon.git&a=commitdiff&h=635b65fa417f49ac4ae189e926bf138efc6544d6
---
Yet another _include_dirs fix
The variable is set as a definition, so mark it as such
---
--- a/cmake/FindPhononInternal.cmake
+++ b/cmake/FindPhononInternal.cmake
@@ -409,7 +409,7 @@
file(WRITE "${_source_file}" "${_source}")
set(_include_dirs "-DINCLUDE_DIRECTORIES:STRING=${QT_INCLUDES}")
- try_compile(_compile_result ${CMAKE_BINARY_DIR} ${_source_file} CMAKE_FLAGS "${_include_dirs}" OUTPUT_VARIABLE _compile_output_var)
+ try_compile(_compile_result ${CMAKE_BINARY_DIR} ${_source_file} CMAKE_FLAGS "${CMAKE_CXX_FLAGS}" COMPILE_DEFINITIONS "${_include_dirs}" OUTPUT_VARIABLE _compile_output_var)
if(NOT _compile_result)
message("${_compile_output_var}")