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

Antonio Rojas arojas at archlinux.org
Wed Jan 20 22:12:43 UTC 2021


    Date: Wednesday, January 20, 2021 @ 22:12:43
  Author: arojas
Revision: 406486

Update to 2.10

Modified:
  net-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++++-------------------
 1 file changed, 9 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-20 21:32:47 UTC (rev 406485)
+++ PKGBUILD	2021-01-20 22:12:43 UTC (rev 406486)
@@ -2,40 +2,30 @@
 # Contributor: judd <jvinet at zeroflux.org>
 
 pkgname=net-tools
-pkgver=1.60.20181103git
-_commit=0eebece8c9
-pkgrel=2
+pkgver=2.10
+pkgrel=1
 pkgdesc="Configuration tools for Linux networking"
 arch=('x86_64')
 license=('GPL2')
 url="http://net-tools.sourceforge.net/"
 depends=('glibc')
-makedepends=('git')
-# use git snapshot currently prefered over release
-source=("net-tools::git://git.code.sf.net/p/net-tools/code#commit=${_commit}")
+source=("https://downloads.sourceforge.net/project/net-tools/$pkgname-$pkgver.tar.xz")
 options=(!makeflags)
-sha1sums=('SKIP')
+sha1sums=('4080baab0486dc882c3b293d5559c27251ae4268')
 
-
-prepare() {
-  sed -i "s#/sbin#/bin#" ${srcdir}/${pkgname}/Makefile
-  sed -i "s#/usr##" ${srcdir}/${pkgname}/man/Makefile
-}
-
 build() {
-  cd ${srcdir}/${pkgname}
+  cd ${pkgname}-${pkgver}
+  export BINDIR='/usr/bin' SBINDIR='/usr/bin'
   yes "" | make
 }
 
 package() {
-  cd ${srcdir}/${pkgname}
-  make DESTDIR=${pkgdir}/usr update
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
 
   # the following is provided by yp-tools
   rm "${pkgdir}"/usr/bin/{nis,yp}domainname
-  rm "${pkgdir}"/usr/share/man/man1/{nis,yp}domainname.1
-
   # hostname is provided by inetutils
   rm "${pkgdir}"/usr/bin/{hostname,dnsdomainname,domainname}
-  rm -rf "${pkgdir}"/usr/share/man/man1
+  rm -r "${pkgdir}"/usr/share/man/man1
 }



More information about the arch-commits mailing list