summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 629e516a69c9bb2712807ac261b3fb07c51e2117 (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
39
# Maintainer: Sam Stuewe <halosghost at archlinux dot info>

pkgname=pbpst-git
pkgver=v1.4.1.r10.g4ca00b5
pkgrel=1

pkgdesc='A small tool to interact with pb instances'
url='https://github.com/HalosGhost/pbpst'
arch=('i686' 'x86_64')
license=('GPL2')

provides=('pbpst')
conflicts=('pbpst')

depends=('curl' 'jansson')
makedepends=('git' 'clang' 'python-sphinx')

source=('git+https://github.com/HalosGhost/pbpst.git')
sha256sums=('SKIP')

pkgver () {
    cd pbpst
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare () {
    cd pbpst
    ./configure --prefix='/usr'
}

build () {
    cd pbpst
    make
}

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