PKGBUILD 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Maintainer (Arch): Stéphane Gaudreault <stephane@archlinux.org>
  2. # Maintainer (Arch): Tobias Powalowski <tpowa@archlinux.org>
  3. # Contributor (Arch): Aaron Griffin <aaron@archlinux.org>
  4. # Maintainer: André Silva <emulatorman@hyperbola.info>
  5. pkgname=iputils
  6. pkgver=20200821
  7. pkgrel=2
  8. pkgdesc="Network monitoring tools, including ping"
  9. arch=('i686' 'x86_64')
  10. license=('Modified-BSD' 'GPL-2' 'custom:Rdisc')
  11. url="http://www.skbuff.net/iputils/"
  12. groups=('base')
  13. depends=('libressl' 'libcap' 'libidn2')
  14. makedepends=('perl-sgmls' 'docbook-xsl' 'meson')
  15. conflicts=('netkit-base' 'arping' 'netkit-tftpd')
  16. replaces=('netkit-base')
  17. install=${pkgname}.install
  18. source=(https://github.com/iputils/iputils/archive/s${pkgver}.tar.gz
  19. copyright)
  20. sha512sums=('4a57c3637cdd9aab2600682774e27370716cbdf1c7ac8ae61bf86c21c08701a5b697792df4aa95309b196eaa74f3cb6b2836a40f04da0e602156e982ac99d8c9'
  21. '7807777f7c5a5f0d6b0dda43169c0de5436360f26eeb64002f1400791fcfaf1c08c9c1e3c25af84e494b024d194f30ea804cc70c299ee152e5103cf8b47055eb')
  22. build() {
  23. mkdir -p build
  24. cd build
  25. hyperbola-meson ../$pkgname-s$pkgver -DBUILD_RARPD=true
  26. ninja
  27. }
  28. package() {
  29. cd build
  30. DESTDIR="$pkgdir" ninja install
  31. # make iputils FHS compliant
  32. install -dm755 "${pkgdir}"/bin
  33. mv "${pkgdir}"/{usr/,}bin/ping
  34. mv "${pkgdir}"/{usr/s,}bin/rdisc
  35. install -Dm644 "${srcdir}"/copyright "${pkgdir}"/usr/share/licenses/${pkgname}/copyright
  36. }