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 2d66c79ba1
commit 71a14bbe97
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 pkgbase = kpeoplevcard-git
pkgdesc = KPeople VCard Support pkgdesc = Expose VCard contacts to KPeople
pkgver = r38.32d50a9 pkgver = 0.1.r124.gb84f309
pkgrel = 1 pkgrel = 1
url = https://phabricator.kde.org/source/kpeoplevcard/ url = https://kde.org
arch = x86_64 arch = x86_64
license = GPL license = GPL
makedepends = git makedepends = git
makedepends = extra-cmake-modules makedepends = extra-cmake-modules
depends = kpeople depends = kpeople5
depends = kcontacts depends = kcontacts5
provides = kpeoplevcard provides = kpeoplevcard
conflicts = kpeoplevcard conflicts = kpeoplevcard
source = git+git://anongit.kde.org/kpeoplevcard source = git+https://invent.kde.org/pim/kpeoplevcard.git
md5sums = SKIP md5sums = SKIP
pkgname = kpeoplevcard-git pkgname = kpeoplevcard-git

View File

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