diff options
author | João Figueiredo | 2023-06-08 23:16:50 +0100 |
---|---|---|
committer | João Figueiredo | 2023-06-08 23:16:50 +0100 |
commit | 67c98b6c13d17ef4b23693e8ad434b57d152d40d (patch) | |
tree | 402b185c6d0097b8585c784acdb32f2dd51e70c4 | |
download | aur-67c98b6c13d17ef4b23693e8ad434b57d152d40d.tar.gz |
Hello
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..49baeaa7b1ef --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = phonon-qt6-git + pkgdesc = The multimedia framework by KDE + pkgver = 4.11.1_r3911.g0f0ae8d0 + pkgrel = 1 + url = https://community.kde.org/Phonon + arch = x86_64 + license = LGPL + makedepends = git + makedepends = extra-cmake-modules-git + makedepends = qt6-tools + makedepends = qt6-5compat + depends = libpulse + depends = qt6-base + optdepends = pulseaudio: PulseAudio support + optdepends = qt6-tools: Designer plugin + provides = phonon-qt6 + conflicts = phonon-qt6 + replaces = phonon-git + source = git+https://github.com/KDE/phonon.git + sha256sums = SKIP + +pkgname = phonon-qt6-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a0ce69e6ee6a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Merged with official ABS phonon PKGBUILD by João, 2021/05/01 (all respective contributors apply herein) +# Maintainer: João Figueiredo & chaotic-aur <islandc0der@chaotic.cx> + +pkgname=phonon-qt6-git +pkgdesc="The multimedia framework by KDE" +pkgver=4.11.1_r3911.g0f0ae8d0 +pkgrel=1 +arch=($CARCH) +url='https://community.kde.org/Phonon' +license=(LGPL) +depends=(libpulse qt6-base) +optdepends=('pulseaudio: PulseAudio support' 'qt6-tools: Designer plugin') +makedepends=(git extra-cmake-modules-git qt6-tools qt6-5compat) +conflicts=(${pkgname%-git}) +provides=(${pkgname%-git}) +replaces=(phonon-git) +source=("git+https://github.com/KDE/${pkgname%%-*}.git") +sha256sums=('SKIP') + +pkgver() { + cd ${pkgname%%-*} + _ver="$(grep -m1 'project(Phonon VERSION' CMakeLists.txt | cut -d '"' -f2 | tr - .)" + echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" +} + +build() { + cmake -B build -S ${pkgname%%-*} \ + -DQT_MAJOR_VERSION=6 \ + -DBUILD_TESTING=OFF + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} |