summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorOleksandr Natalenko2020-05-04 16:19:48 +0200
committerOleksandr Natalenko2020-05-04 16:19:48 +0200
commitb498f08e9e4d377516e4674b513ef7db08bb307b (patch)
tree40419429e658937cde30a37084158f243777fed4 /PKGBUILD
parentc53b84dc4dfa6094ee56b53f3bfdcfdac7f6f7d8 (diff)
downloadaur-pingtcp.tar.gz
bump to v0.0.5
Signed-off-by: Oleksandr Natalenko <oleksandr@redhat.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 14 insertions, 19 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 46e98853a9b..40bf3ce999f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,34 +1,29 @@
# Maintainer: Oleksandr Natalenko aka post-factum <oleksandr@natalenko.name>
pkgname=pingtcp
-pkgver=0.0.4
-pkgrel=2
+pkgver=0.0.5
+pkgrel=1
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')
+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=('23582f215881f635911e03aeb5789f32d385ddacab5726f9eabbcff59b61aa7c')
-
-prepare() {
- cd "${srcdir}/${pkgname}-v${pkgver}"
-
- mkdir -p build
-}
+sha256sums=('531d757be2a36b8b25e1577065c13864e595a26df21d467fd4c2f302f910efdc')
build() {
- cd "${srcdir}/${pkgname}-v${pkgver}/build"
+ cd "${pkgname}-v${pkgver}"
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr ..
- make -j$(nproc)
+ make
}
package() {
- cd "${srcdir}/${pkgname}-v${pkgver}/build"
+ cd "${pkgname}-v${pkgver}"
+
+ make DESTDIR="${pkgdir}" PREFIX="/usr" install
- make install
+ install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README"
}