pmbootstrap/aports/kde/phonon/APKBUILD

44 lines
1.1 KiB
Plaintext

pkgname=phonon
pkgver=4.9.1
pkgrel=2
pkgdesc="KDE multimedia backend"
url="http://phonon.kde.org/"
arch="all"
license="LGPL"
depends_dev="qt5-qtbase-dev glib-dev"
makedepends="$depends_dev extra-cmake-modules cmake automoc4"
source="http://download.kde.org/stable/phonon/${pkgver}/phonon-$pkgver.tar.xz"
subpackages="$pkgname-dev"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i ;;
esac
done
mkdir -p "$builddir"/build
}
build() {
cd "$builddir"/build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \
-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=FALSE \
-DPHONON_BUILD_PHONON4QT5=ON \
-DDBUS_INTERFACES_INSTALL_DIR=/usr/share/dbus-1/interfaces \
-Wno-dev \
"$builddir"
make
}
package() {
cd "$builddir"/build
make DESTDIR="$pkgdir" install
}
sha512sums="a1741765071a625d9b9073d9ad1571b91cf5bfce2223bd1b034828d02dc52624587a6ec5352f3702df79f6e4201007596843fbcb9f15c9b489a858200787d728 phonon-4.9.1.tar.xz"