summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40bf3ce999fcb6c4545f6407b883b04cfeb056a4 (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
# Maintainer: Oleksandr Natalenko aka post-factum <oleksandr@natalenko.name>
pkgname=pingtcp
pkgver=0.0.5
pkgrel=1
pkgdesc="Small utility to measure TCP handshake time (torify-friendly)"
url="https://gitlab.com/post-factum/${pkgname}"
arch=(x86_64)
license=(GPL3)
depends=(libbsd)
optdepends=("torsocks: for TOR support")
source=(${pkgname}-${pkgver}.tar.gz::https://gitlab.com/post-factum/${pkgname}/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz)

sha256sums=('531d757be2a36b8b25e1577065c13864e595a26df21d467fd4c2f302f910efdc')

build() {
	cd "${pkgname}-v${pkgver}"

	make
}

package() {
	cd "${pkgname}-v${pkgver}"

	make DESTDIR="${pkgdir}" PREFIX="/usr" install

	install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README"
}