kpeoplevcard-git: fix build failure because of missing dependencies

This commit is contained in:
Rihards Skuja 2023-11-10 20:07:06 +02:00
parent 6bb6fd9570
commit 5fcf1aac2d
Signed by: rhssk
GPG Key ID: BABE7EB1F38C7EF6
2 changed files with 17 additions and 23 deletions

View File

@ -1,18 +1,17 @@
pkgbase = kpeoplevcard-git
pkgdesc = KPeople VCard Support
pkgver = r38.32d50a9
pkgdesc = Expose VCard contacts to KPeople
pkgver = 0.1.r124.gb84f309
pkgrel = 1
url = https://phabricator.kde.org/source/kpeoplevcard/
url = https://kde.org
arch = x86_64
license = GPL
makedepends = git
makedepends = extra-cmake-modules
depends = kpeople
depends = kcontacts
depends = kpeople5
depends = kcontacts5
provides = kpeoplevcard
conflicts = kpeoplevcard
source = git+git://anongit.kde.org/kpeoplevcard
source = git+https://invent.kde.org/pim/kpeoplevcard.git
md5sums = SKIP
pkgname = kpeoplevcard-git

View File

@ -1,35 +1,30 @@
# Maintainer: Rihards Skuja <rhssk at posteo eu>
_pkgname=kpeoplevcard
pkgname=$_pkgname-git
pkgver=r38.32d50a9
pkgver=0.1.r124.gb84f309
pkgrel=1
pkgdesc="KPeople VCard Support"
pkgdesc="Expose VCard contacts to KPeople"
arch=(x86_64)
url="https://phabricator.kde.org/source/$_pkgname/"
url="https://kde.org"
license=("GPL")
depends=(kpeople kcontacts)
depends=(kpeople5 kcontacts5)
makedepends=(git extra-cmake-modules)
provides=($_pkgname)
conflicts=($_pkgname)
source=("git+git://anongit.kde.org/$_pkgname")
source=("git+https://invent.kde.org/pim/$_pkgname.git")
md5sums=("SKIP")
pkgver() {
cd $_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p build
git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd build
cmake ../$_pkgname
make
cmake -B build -S $_pkgname -Wno-dev
cmake --build build
}
package() {
cd build
make DESTDIR="$pkgdir/" install
DESTDIR="$pkgdir" cmake --install build
}