archrelease: copy trunk to staging-x86_64
[arch-packages.git] / fping / trunk / PKGBUILD
blob8a93b74c0a92c4db0b94e6a4724ad41a9d94be47
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
5 pkgname=fping
6 pkgver=5.1
7 pkgrel=2
8 pkgdesc='Utility to ping multiple hosts at once'
9 url='https://www.fping.org/'
10 arch=('x86_64')
11 license=('custom')
12 depends=('glibc')
13 install=${pkgname}.install
14 validpgpkeys=('8D1E89B8FBA920A5A609F2615A11A22BC5A1F734') # David Schweikert <david@schweikert.ch>
15 source=("https://www.fping.org/dist/${pkgname}-${pkgver}.tar.gz"{,.asc}
16         '0001-fix-unprivileged-ping-broken-in-v5.1-fixes-248.patch'
17         '0002-fix-socket4-vs-socket6-typo-249-thanks-sfan5.patch')
18 sha512sums=('1a208da8dcd99093d0512af5d85ba5e7b5743ec97993d24c1fe612bb58d93090ac1ba0952f648aa075f16d390a77c4be65e394ae56dbede2a6914e0e8c68e2bd'
19             'SKIP'
20             'f9847470d63ba0e40fc5ce77c0689fcd858ded55ed0727308f55cbb6648b93da4bf05a35414a67054a1eb406ba8c8b29e044b6269506c8f5a70ae991e6c43152'
21             'c098fc5d4e1ac7aa504cc1d92a78c05650f76d43380f0a7c719b5a717721cb327134d7fb62a6d06ba829daeda477e705b0b9f3f944742e9cf90ece5091111b96')
22 b2sums=('2fb344e650b5a359fb8780f2c599455d39405ae823edf695ee4385aa2661dc5811e088bafa1b9f53846ee90c0afa959a92832381a03346d1fda048eb4e7ee098'
23         'SKIP'
24         '593299e217cf34b6d8ddb8b8ac8ac8bc96f417f14188c78277f0afd37538b7e525d1a235129d10f14b6e16a69afde3a48e179883459b586a17c7314483de4824'
25         'b3f4e4248e27b027ad07c9d1650fb93e6f672729d3bf02b1c89e3f75ecd9471a0e2b9663bc5473dcbc9ead6e10e1b4415d94599c9064762872e2116936446676')
27 prepare() {
28   cd ${pkgname}-${pkgver}
29   patch -Np1 < ../0001-fix-unprivileged-ping-broken-in-v5.1-fixes-248.patch
30   patch -Np1 < ../0002-fix-socket4-vs-socket6-typo-249-thanks-sfan5.patch
33 build() {
34   cd ${pkgname}-${pkgver}
35   ./configure \
36     --prefix=/usr \
37     --sbindir=/usr/bin \
38     --mandir=/usr/share/man \
39     --enable-ipv4 \
40     --enable-ipv6
41   make
44 package() {
45   cd ${pkgname}-${pkgver}
46   make DESTDIR="${pkgdir}" install
47   install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
50 # vim: ts=2 sw=2 et: