summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3496fa30fc904dd43064373f65b91211e644a2a4 (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
# Maintainer: Martin Sandsmark <martin.sandsmark@kde.org>

pkgname=pastenotifier-git
pkgver=26.985ca75
pkgrel=1
pkgdesc="Simple application showing what is copied to the clipboard, avoids embarassment"
arch=(i686 x86_64)
url="https://github.com/sandsmark/pastenotifier"
license=(GPL3)
depends=(kglobalaccel)
makedepends=(git)
provides=(pastenotifier)
conflicts=(pastenotifier)
source=('git+https://github.com/sandsmark/pastenotifier.git')
md5sums=('SKIP')

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

prepare() {
    mkdir -p build
}

build() {
    cd build
        cmake ../pastenotifier \
        -DCMAKE_INSTALL_PREFIX=/usr
    make
}

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