diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 54 |
1 files changed, 25 insertions, 29 deletions
@@ -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 } |