summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 46e98853a9b5042e64bfba7f18399851f61dd958 (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
# Maintainer: Oleksandr Natalenko aka post-factum <oleksandr@natalenko.name>
pkgname=pingtcp
pkgver=0.0.4
pkgrel=2
pkgdesc="Small utility to measure TCP handshake time (torify-friendly)"
url="https://gitlab.com/post-factum/${pkgname}"
arch=('i686' 'x86_64')
license=('GPLv3')
depends=('glibc' 'gcc-libs' 'libunwind' 'gperftools')
optdepends=('torsocks: for TOR support')
makedepends=('gcc' 'cmake' 'make' 'libunwind' 'gperftools')
source=(${pkgname}-${pkgver}.tar.gz::https://gitlab.com/post-factum/${pkgname}/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz)

sha256sums=('23582f215881f635911e03aeb5789f32d385ddacab5726f9eabbcff59b61aa7c')

prepare() {
	cd "${srcdir}/${pkgname}-v${pkgver}"

	mkdir -p build
}

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

	cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr ..
	make -j$(nproc)
}

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

	make install
}