summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e3286150a5c96c7ead3b332b8c4aa62a57d84289 (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
# Maintainer: Ainola
pkgname=plasma5-applets-plasma-pass-git
pkgver=r16.d067ec5
pkgrel=2
pkgdesc='Plasma applet for pass.'
url="https://cgit.kde.org/scratch/dvratil/plasma-pass.git"
arch=('x86_64' 'i686')
license=('custom')  # No license in the repo yet as of writing.
depends=('pass' 'plasma-framework')
makedepends=('cmake' 'git')
provides=('plasma5-applets-plasma-pass')
source=("git+https://anongit.kde.org/scratch/dvratil/plasma-pass.git")
sha256sums=('SKIP')

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

build() {
    cd "$srcdir/plasma-pass"
    [ -d build ] && rm -Rf build
    mkdir -p build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX=/usr
}
package(){
    cd "${srcdir}/plasma-pass/build"
    make DESTDIR="$pkgdir" install
}