summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9c8e14b2181fc2cfccc3e4ff7fa92f8ac05efb33 (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
40
41
42
# Maintainer: David Phillips <dbphillipsnz@gmail.com>

_pkgname=sent
pkgname=${_pkgname}-git
pkgver=r125.72d33d4
pkgrel=1
pkgdesc="Simple plain-text presentation tool"
arch=('i686' 'x86_64')
url="http://tools.suckless.org/${_pkgname}"
license=('MIT')
depends=('fontconfig' 'libxft')
optdepends=('farbfeld: PNG and JPEG support')
makedepends=('git')
conflicts=('sent')
source=("${pkgname}::git://git.suckless.org/${_pkgname}")
#        "config.h")
sha256sums=('SKIP')
#            'SKIP')

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

prepare() {
	cd "${srcdir}/${pkgname}"
	if [ -f "${srcdir}/config.h" ]; then
		cp "${srcdir}/config.h" .
	fi
}

build() {
	make -C "${srcdir}/${pkgname}"
}

package() {
	cd "${srcdir}/${pkgname}"
	make PREFIX="/usr" \
		 DESTDIR="${pkgdir}" \
		 install
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}