diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 19 insertions, 18 deletions
@@ -1,33 +1,34 @@ # Maintainer: Oleksandr Natalenko aka post-factum <oleksandr@natalenko.name> pkgname=pingtcp -pkgver=0.0.2 -pkgrel=2 +pkgver=0.0.4 +pkgrel=1 pkgdesc="Small utility to measure TCP handshake time (torify-friendly)" -url="https://github.com/LanetNetwork/pingtcp" +url="https://github.com/pfactum/${pkgname}" arch=('i686' 'x86_64') license=('GPLv3') -depends=('glibc' 'gcc-libs') -optdepends=('gperftools: for libtcmalloc' 'torsocks: for TOR support') -makedepends=('cmake' 'git' 'make') -source=(${pkgname}::git+https://github.com/LanetNetwork/pingtcp.git) +depends=('glibc' 'gcc-libs' 'libunwind' 'gperftools') +optdepends=('torsocks: for TOR support') +makedepends=('gcc' 'cmake' 'make' 'libunwind' 'gperftools') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/pfactum/${pkgname}/archive/v${pkgver}.tar.gz) -md5sums=('SKIP') +sha256sums=('ba6f3eb2660f703394bd0d40271a71f4d03434c89d71ae92ba2a2dcb50fd6ea6') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" -build() { - cd ${srcdir}/${pkgname} - git submodule init - git submodule update mkdir -p build - cd build +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}/build" + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr .. - # Detect CPUs count automatically - CPUS_COUNT=$(nproc) - echo "Compiling using $CPUS_COUNT thread(s)" - make -j$CPUS_COUNT + make -j$(nproc) } package() { - cd ${srcdir}/${pkgname}/build + cd "${srcdir}/${pkgname}-${pkgver}/build" + make install } |