summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5b2784888d93b0a8d1e864e7e4dfacd9e1f5c9f (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=pandabin-git
pkgver=r85.996b17a
pkgrel=1

pkgdesc='A self-hostable, simple and fast pastebin written in C'
url='https://github.com/HalosGhost/pandabin'
arch=('i686' 'x86_64')
license=('GPL2')

provides=('pandabin')
conflicts=('pandabin')

depends=('lwan' 'libutil-linux' 'openssl' 'sqlite3')
makedepends=('git' 'tup' 'clang')

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

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

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

build () {
    cd pandabin
    make
}

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