summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 961f9eb91b083440869d64c4799e5e96a54537a9 (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
#Maintainer: Rein Fernhout (LevitatingBusinessMan) <public@reinfernhout.xyz>

pkgname=lovecraft
pkgver=r13.052ecf4
arch=("x86_64")
pkgrel=1
pkgdesc="Print random paragraphs from Lovecrafts stories"
license=("MIT")
makedepends=("make" "git")
url="https://github.com/LevitatingBusinessMan/lovecraft"
source=("git+https://github.com/LevitatingBusinessMan/lovecraft.git")
sha256sums=("SKIP")

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
}