summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD40
2 files changed, 21 insertions, 27 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 54dada47516..b6e9abf0a84 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
pkgbase = kidentitymanagement-git
pkgdesc = KDE PIM libraries
- pkgver = r3689.0f983efd
+ pkgver = 5.16.41_r3749.ge3386a79
pkgrel = 1
url = https://kontact.kde.org
- arch = i686
arch = x86_64
+ groups = kdepim-git
license = LGPL
- makedepends = extra-cmake-modules
makedepends = git
- depends = kpimtextedit
+ makedepends = extra-cmake-modules-git
+ depends = kpimtextedit-git
provides = kidentitymanagement
conflicts = kidentitymanagement
source = git+https://github.com/KDE/kidentitymanagement.git
diff --git a/PKGBUILD b/PKGBUILD
index 96026ee8e40..8a8e74698aa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,35 @@
-# Maintainer: João Figueiredo <jf dot mundox at gmail dot com>
+# Merged with official ABS kidentitymanagement PKGBUILD by João, 2021/02/01 (all respective contributors apply herein)
+# Maintainer: João Figueiredo <jf.mundox@gmail.com>
# Contributor: Felix Golatofsk <contact@xdfr.de>
# Contributor: Antonio Rojas <arojas@archlinux.org>
-_pkgname=kidentitymanagement
-pkgname=$_pkgname-git
-pkgver=r3689.0f983efd
+pkgname=kidentitymanagement-git
+pkgver=5.16.41_r3749.ge3386a79
pkgrel=1
pkgdesc="KDE PIM libraries"
-arch=(i686 x86_64)
+arch=($CARCH)
url="https://kontact.kde.org"
license=(LGPL)
-depends=(kpimtextedit)
-makedepends=(extra-cmake-modules git)
-conflicts=("$_pkgname")
-provides=("$_pkgname")
-source=('git+https://github.com/KDE/kidentitymanagement.git')
+groups=(kdepim-git)
+depends=(kpimtextedit-git)
+makedepends=(git extra-cmake-modules-git)
+conflicts=(${pkgname%-git})
+provides=(${pkgname%-git})
+source=("git+https://github.com/KDE/${pkgname%-git}.git")
sha256sums=('SKIP')
pkgver() {
- cd $srcdir/$_pkgname
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
-
-prepare() {
- cd $srcdir/$_pkgname
- mkdir -p build
+ cd ${pkgname%-git}
+ _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/$_pkgname/build
- cmake ../ \
+ cmake -B build -S ${pkgname%-git} \
-DBUILD_TESTING=OFF
- make
+ cmake --build build
}
package() {
- cd $srcdir/$_pkgname/build
- make DESTDIR="$pkgdir" install
- install -Dm644 ../COPYING.LIB "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
+ DESTDIR="$pkgdir" cmake --install build
}