[arch-commits] Commit in iputils/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Fri Sep 13 19:50:06 UTC 2019


    Date: Friday, September 13, 2019 @ 19:50:05
  Author: arojas
Revision: 362600

Update to 20190709

Modified:
  iputils/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++-----------------
 1 file changed, 10 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-13 19:30:40 UTC (rev 362599)
+++ PKGBUILD	2019-09-13 19:50:05 UTC (rev 362600)
@@ -4,9 +4,9 @@
 
 pkgname=iputils
 # Commit date + git rev-parse --short origin/master
-_rev=f6aac8d
-pkgver=20180629.${_rev}
-pkgrel=4
+_rev=13e0084
+pkgver=20190709
+pkgrel=1
 pkgdesc="Network monitoring tools, including ping"
 arch=('x86_64')
 license=('GPL')
@@ -14,7 +14,7 @@
 groups=('base')
 depends=('openssl' 'libcap' 'libidn2')
 optdepends=('xinetd: for tftpd')
-makedepends=('perl-sgmls' 'git' 'docbook-xsl')
+makedepends=('perl-sgmls' 'git' 'docbook-xsl' 'meson')
 conflicts=('netkit-base' 'arping' 'netkit-tftpd')
 replaces=('netkit-base')
 backup=(etc/xinetd.d/tftp)
@@ -25,25 +25,18 @@
           'fc2ae26f5609725e3f4aeaf4ab82dfa6d2e378fd')
 
 build() {
-  cd "${srcdir}/${pkgname}"
+  mkdir -p build
+  cd build
 
-  make USE_NETTLE=no USE_GNUTLS=no CCOPTOPT="$CFLAGS"
-  # fix perl-sgmls
-  sed -i -e 's#sgmlspl#sgmlspl.pl#g' "${srcdir}/${pkgname}/doc/Makefile"
-  make -C doc man
+  arch-meson ../$pkgname -DBUILD_RARPD=true
+  ninja
 }
 
 package() {
-  cd "${srcdir}/${pkgname}"
+  cd build
 
-  install -dm755 "${pkgdir}"/usr/bin
+  DESTDIR="$pkgdir" ninja install
 
-  install -m755 arping clockdiff ping rarpd rdisc tftpd tracepath "${pkgdir}"/usr/bin/
-
-  install -dm755 "${pkgdir}"/usr/share/man/man8
-  install -m644 doc/{arping,clockdiff,ping,rarpd,rdisc,tftpd,tracepath}.8 \
-     "${pkgdir}"/usr/share/man/man8/
-
   # FS#24768
   install -dm755 "${pkgdir}"/etc/xinetd.d/
   install -m644 "${srcdir}"/tftp.xinetd "${pkgdir}"/etc/xinetd.d/tftp



More information about the arch-commits mailing list