summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff980c92638f1412f3a4b123d4d80eeb23744b65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Rihards Skuja <rhssk at posteo eu>
_pkgname=kpeoplevcard
pkgname=$_pkgname-git
pkgver=r38.32d50a9
pkgrel=1
pkgdesc="KPeople VCard Support"
arch=(x86_64)
url="https://phabricator.kde.org/source/$_pkgname/"
license=("GPL")
depends=(kpeople kcontacts)
makedepends=(git extra-cmake-modules)
provides=($_pkgname)
conflicts=($_pkgname)
source=("git+git://anongit.kde.org/$_pkgname")
md5sums=("SKIP")

pkgver() {
    cd $_pkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    mkdir -p build
}

build() {
    cd build
    cmake ../$_pkgname
    make
}

package() {
    cd build
    make DESTDIR="$pkgdir/" install
}