summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b20012b5d5d3e93487e38733c7551526d28f65e6 (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
36
37
38
# Maintainer: George Rawlinson <george@rawlinson.net.nz>
# Contributor: Ainola
# Contributor: jfranco

pkgname=plasma-pass-git
_pkgname=${pkgname%-git}
pkgver=1.1.0.r21.72fc453
pkgrel=1
pkgdesc="Plasma applet for the Pass password manager"
url="https://invent.kde.org/plasma/plasma-pass"
arch=(x86_64)
license=(GPL)
depends=(plasma-workspace kitemmodels)
makedepends=(extra-cmake-modules git)
provides=(plasma-pass)
conflicts=(plasma-pass)
source=("git+https://invent.kde.org/plasma/plasma-pass.git")
md5sums=('SKIP')

pkgver() {
    cd "$_pkgname"
    printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}

prepare() {
    mkdir -p build
}

build() {
    cd build
    cmake ../"$_pkgname" \
        -DCMAKE_INSTALL_PREFIX=/usr
}

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