diff options
author | João Figueiredo | 2021-02-01 23:29:35 +0000 |
---|---|---|
committer | João Figueiredo | 2021-02-01 23:29:35 +0000 |
commit | 0e2783bfe97021d4b887c578cc4edc4ed85a7484 (patch) | |
tree | e45a290f34f3b4849f678101051958e049a32fed /PKGBUILD | |
parent | 495693fd386b5cd0dd5fb6374b390bd7acfa6daf (diff) | |
download | aur-0e2783bfe97021d4b887c578cc4edc4ed85a7484.tar.gz |
Merged with official ABS knotifyconfig PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 22 insertions, 29 deletions
@@ -1,42 +1,35 @@ -# Maintainer: João Figueiredo <jf dot mundox at gmail dot com> +# Merged with official ABS knotifyconfig PKGBUILD by João, 2021/02/01 (all respective contributors apply herein) +# Maintainer: João Figueiredo <jf.mundox@gmail.com> # Contributor: Andrea Scarpino <andrea@archlinux.org> pkgname=knotifyconfig-git -pkgver=r289.fd4482e +pkgver=5.79.0_r317.g3f3fd2b pkgrel=1 -pkgdesc='KNotifyConfig' -arch=('i686' 'x86_64') -url='https://projects.kde.org/projects/frameworks/knotifyconfig' -license=('LGPL') -depends=('kio-git') -makedepends=('extra-cmake-modules-git' 'git') -groups=('kf5') -conflicts=(knotifyconfig) -provides=(knotifyconfig) -source=('git+https://github.com/KDE/knotifyconfig.git') -md5sums=('SKIP') +pkgdesc='Configuration system for KNotify' +arch=($CARCH) +url='https://community.kde.org/Frameworks' +license=(LGPL) +depends=(kio-git) +makedepends=(git extra-cmake-modules-git doxygen qt5-tools qt5-doc) +conflicts=(${pkgname%-git}) +provides=(${pkgname%-git}) +groups=(kf5-git) +source=("git+https://github.com/KDE/${pkgname%-git}.git") +sha256sums=('SKIP') pkgver() { - cd knotifyconfig - 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(KF5\?_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 ../knotifyconfig \ - -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} \ + -DBUILD_TESTING=OFF \ + -DBUILD_QCH=ON + cmake --build build } package() { - cd build - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" cmake --install build } |