diff options
author | João Figueiredo | 2021-11-18 14:40:39 +0000 |
---|---|---|
committer | João Figueiredo | 2021-11-18 14:40:39 +0000 |
commit | 3dfacd05e161f81b94f0256bf6d2ad7aa2e70669 (patch) | |
tree | 779a03916b1df9d5ac39b44aac562a5fc81c1165 | |
parent | fd4d1cf882c91323ba027e6fe61556de3c24cfbe (diff) | |
download | aur-3dfacd05e161f81b94f0256bf6d2ad7aa2e70669.tar.gz |
Merged with official ABS libkgapi PKGBUILD
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 56 |
2 files changed, 33 insertions, 42 deletions
@@ -1,21 +1,22 @@ pkgbase = libkgapi-git pkgdesc = A KDE-based library for accessing various Google services via their public API - pkgver = r687. + pkgver = 5.19.40_r1319.g7c286d7 pkgrel = 1 - url = https://projects.kde.org/projects/extragear/libs/libkgapi - arch = i686 + url = https://www.kde.org/ arch = x86_64 + groups = kdepim-git license = GPL license = LGPL license = FDL - makedepends = extra-cmake-modules makedepends = git + makedepends = extra-cmake-modules-git + makedepends = qt5-tools + depends = kcalendarcore-git depends = kcontacts-git - depends = kcalcore-git + depends = kwallet-git provides = libkgapi - conflicts = libkgapilibkgapi-frameworks-git - source = libkgapi::git+git://anongit.kde.org/libkgapi - md5sums = SKIP + conflicts = libkgapi + source = git+https://github.com/KDE/libkgapi.git + sha256sums = SKIP pkgname = libkgapi-git - @@ -1,44 +1,34 @@ +# Merged with official ABS libkgapi PKGBUILD by João, 2021/11/18 (all respective contributors apply herein) +# Maintainer: João Figueiredo & chaotic-aur <islandc0der@chaotic.cx> + pkgname=libkgapi-git -pkgver=r687. +pkgver=5.19.40_r1319.g7c286d7 pkgrel=1 -pkgdesc='A KDE-based library for accessing various Google services via -their public API' -arch=('i686' 'x86_64') -url='https://projects.kde.org/projects/extragear/libs/libkgapi' -license=('GPL' 'LGPL' 'FDL') -depends=('kcontacts-git' 'kcalcore-git') -makedepends=('extra-cmake-modules' 'git') -conflicts=('libkgapi''libkgapi-frameworks-git') -provides=('libkgapi') -source=('libkgapi::git+git://anongit.kde.org/libkgapi') -md5sums=('SKIP') +pkgdesc='A KDE-based library for accessing various Google services via their public API' +url='https://www.kde.org/' +arch=($CARCH) +license=(GPL LGPL FDL) +depends=(kcalendarcore-git kcontacts-git kwallet-git) +makedepends=(git extra-cmake-modules-git qt5-tools) +conflicts=(${pkgname%-git}) +provides=(${pkgname%-git}) +groups=(kdepim-git) +source=("git+https://github.com/KDE/${pkgname%-git}.git") +sha256sums=('SKIP') pkgver() { - cd "${srcdir}/libkgapi" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse ---short HEAD)" -} - -prepare() { - if [[ -d "${srcdir}/build" ]]; then - msg "Cleaning the previous build directory..." - rm -rf "${srcdir}/build" - fi - mkdir "${srcdir}/build" + cd ${pkgname%-git} + _ver="$(grep -m1 'set(RELEASE_SERVICE_VERSION' CMakeLists.txt | cut -d '"' -f2 | tr - .)" + _ver=${_ver:-"$(grep -m1 'set(PIM_VERSION' CMakeLists.txt | cut -d '"' -f2 | tr - .)"} + echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" } build() { - cd "${srcdir}/build" - cmake "${srcdir}/libkgapi" -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_INSTALL_DIR=lib \ - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ - -DBUILD_TESTING=OFF - make + cmake -B build -S ${pkgname%-git} \ + -DBUILD_TESTING=OFF + cmake --build build } package() { - cd "${srcdir}/build" - make DESTDIR="${pkgdir}" install + DESTDIR="$pkgdir" cmake --install build } - |