diff options
-rw-r--r-- | .SRCINFO | 37 | ||||
-rw-r--r-- | PKGBUILD | 54 |
2 files changed, 43 insertions, 48 deletions
@@ -1,28 +1,27 @@ -# Generated by mksrcinfo v8 -# Sun Jun 12 12:53:50 UTC 2016 pkgbase = knotifications-git - pkgdesc = KNotifications - pkgver = r182.50c0a31 + pkgdesc = Abstraction for system notifications + pkgver = 6.0.0_r961.g18d70b9 pkgrel = 1 - url = https://projects.kde.org/projects/frameworks/knotifications - arch = i686 + url = https://community.kde.org/Frameworks arch = x86_64 - groups = kf5 - license = LGPL - makedepends = extra-cmake-modules-git + groups = kf6-git + license = LGPL-2.0-only + license = LGPL-3.0-only makedepends = git - makedepends = qt5-tools - makedepends = python - depends = libdbusmenu-qt5 - depends = phonon-qt5 - depends = kwindowsystem-git - depends = kcodecs-git + makedepends = doxygen + makedepends = extra-cmake-modules-git + makedepends = qt6-declarative + makedepends = qt6-doc + makedepends = qt6-tools + depends = gcc-libs + depends = glibc depends = kconfig-git - depends = kcoreaddons-git + depends = libcanberra + depends = qt6-base + optdepends = qt6-declarative: QML bindings provides = knotifications conflicts = knotifications - source = git://anongit.kde.org/knotifications.git - md5sums = SKIP + source = git+https://github.com/KDE/knotifications.git + sha256sums = SKIP pkgname = knotifications-git - @@ -1,41 +1,37 @@ -# Maintainer: Andrea Scarpino <andrea@archlinux.org> +# Merged with official ABS knotifications PKGBUILD by João, 2021/02/01 (all respective contributors apply herein) +# Maintainer: João Figueiredo & chaotic-aur <islandc0der@chaotic.cx> +# Contributor: Andrea Scarpino <andrea@archlinux.org> pkgname=knotifications-git -pkgver=r182.50c0a31 +pkgver=6.0.0_r961.g18d70b9 pkgrel=1 -pkgdesc='KNotifications' -arch=(i686 x86_64) -url='https://projects.kde.org/projects/frameworks/knotifications' -license=(LGPL) -depends=(libdbusmenu-qt5 phonon-qt5 kwindowsystem-git kcodecs-git kconfig-git kcoreaddons-git) -makedepends=(extra-cmake-modules-git git qt5-tools python) -groups=(kf5) -conflicts=(knotifications) -provides=(knotifications) -source=('git://anongit.kde.org/knotifications.git') -md5sums=('SKIP') +pkgdesc='Abstraction for system notifications' +arch=($CARCH) +url='https://community.kde.org/Frameworks' +license=(LGPL-2.0-only LGPL-3.0-only) +depends=(gcc-libs glibc kconfig-git libcanberra qt6-base) +makedepends=(git doxygen extra-cmake-modules-git qt6-declarative qt6-doc qt6-tools) +optdepends=('qt6-declarative: QML bindings') +conflicts=(${pkgname%-git}) +provides=(${pkgname%-git}) +groups=(kf6-git) +source=("git+https://github.com/KDE/${pkgname%-git}.git") +sha256sums=('SKIP') pkgver() { - cd knotifications - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" -} - -prepare() { - mkdir -p build + cd ${pkgname%-git} + _ver="$(grep -m1 'set(KF_VERSION' CMakeLists.txt | cut -d '"' -f2 | tr - .)" + echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" } build() { - cd build - cmake ../knotifications \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DKDE_INSTALL_LIBDIR=lib \ - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ - -DBUILD_TESTING=OFF - make + cmake -B build -S ${pkgname%-git} \ + -DQT_MAJOR_VERSION=6 \ + -DBUILD_TESTING=OFF \ + -DBUILD_QCH=ON + cmake --build build } package() { - cd build - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" cmake --install build } |