summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f1e0eab4f17a3908af32b85531f4ff7cc30867f (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: Rein Fernhout (LevitatingBusinessMan) <me@levitati.ng>
pkgname=catbin-git
pkgver=r64.e4334fa
arch=("x86_64")
pkgrel=1
pkgdesc="A pastebin server meant for the terminal. A clone of termbin.com (fiche)."
license=("MIT")
depends=("leveldb" "libmicrohttpd")
makedepends=("make")
url="https://github.com/LevitatingBusinessMan/catbin"
source=("$pkgname::git+https://github.com/LevitatingBusinessMan/catbin.git")
sha256sums=("SKIP")
provides=("catbin")

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

build() {
	cd "${srcdir}/${pkgname}"
	make
}

package() {
	cd "${srcdir}/${pkgname}"
	DESTDIR="$pkgdir" PREFIX="/usr" make install
	mv "$pkgdir/usr/etc" "$pkgdir/etc/"
	mkdir -pv "$pkgdir/var/lib/catbind"
}