summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5486c414f2ec95397e6d1853ed1dd81ee08174be (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
# Maintainer: Bao Trinh <qubidt at gmail dot com>

pkgname=tthsum
pkgver=1.3.2
pkgrel=2
pkgdesc="generates or checks TTH message digests"
arch=('i686' 'x86_64')
url="http://tthsum.devs.nu"
license=('GPL3')
depends=('glibc')
makedepends=()
changelog=CHANGES.txt
source=("${pkgname}-${pkgver}.tar.gz::${url}/pkg/tthsum-${pkgver}.tar.gz")
md5sums=('4a3afe8e9bb5787c0db2de06484f18c1')

prepare() {
	cd "${pkgname}"
	sed -i 's,/usr/local/man,/usr/share/man,g; s,/usr/local/bin,/usr/bin,g' Makefile
}

build() {
	cd "${pkgname}"
	make tthsum
	make manual
	make test
}

check() {
	cd "${pkgname}"
	make runtest
}

package() {
	cd "${pkgname}"
	make DESTDIR="$pkgdir" install
	install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.txt
}