summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ece28232f70396cdc1986df8f5f5887fea29b839 (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
# Maintainer: Emmie Maeda <emmie.maeda@gmail.com>

pkgname="qotd-git"
pkgver=0.12.0_3_gd9d4f66.d9d4f66
pkgrel=1
pkgdesc="A simple RFC 865-compliant QOTD (quote of the day) daemon. (git version)"
arch=('any')
url="https://github.com/emmiegit/${pkgname%-git}"
license=('GPL')
depends=()
makedepends=('git' 'gcc' 'ghostscript' 'gzip')
optdepends=()
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
options=('!zipman')
install="$pkgname.install"
source=("git+https://github.com/emmiegit/${pkgname%-git}.git")
sha256sums=('SKIP')
backup=('etc/qotd.conf')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	local _ver="$(git describe --tags | sed 's/-/_/g')"
	printf '%s.%s' "${_ver:1}" "$(git describe --always)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	make release
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make ROOT="$pkgdir" SYSTEMD=1 install
	install -D -m644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
}

# vim: set sw=4 ts=4 noet: