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

Levente Polyak anthraxx at archlinux.org
Fri Sep 13 17:58:27 UTC 2019


    Date: Friday, September 13, 2019 @ 17:58:27
  Author: anthraxx
Revision: 362580

upgpkg: lsof 4.93.2-1

Modified:
  lsof/trunk/PKGBUILD

----------+
 PKGBUILD |   52 +++++++++++++++++++++++-----------------------------
 1 file changed, 23 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-13 17:10:48 UTC (rev 362579)
+++ PKGBUILD	2019-09-13 17:58:27 UTC (rev 362580)
@@ -1,48 +1,42 @@
-# Maintainer: Tom Gundersen <teg at jklm.no>
-# Contributor: Angel Velasquez <angvp at archlinux.org> 
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Tom Gundersen <teg at jklm.no>
+# Contributor: Angel Velasquez <angvp at archlinux.org>
 # Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
 # Contributor: Aaron Griffin <aaron at archlinux.org>
 # Contributor: Jochem Kossen <j.kossen at home.nl>
 
 pkgname=lsof
-pkgver=4.91
+pkgver=4.93.2
 pkgrel=1
-pkgdesc="Lists open files for running Unix processes"
+pkgdesc='Lists open files for running Unix processes'
+url='https://github.com/lsof-org/lsof'
 arch=('x86_64')
-url="https://people.freebsd.org/~abe/"
 license=('custom')
-depends=('glibc')
-source=(ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/lsof_$pkgver.tar.bz2
+depends=('glibc' 'libtirpc')
+source=(https://github.com/lsof-org/lsof/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
         license.txt)
-sha1sums=('da6f9883d00f200671f6e47cf838bb9b6b9c6f01'
-          'db6b6d90ce895e4053f91ad25c7761fbf9a37dd6')
-#validpgpkeys=(9AFD62A840BD3D55) It is PGP-2 key
+sha512sums=('3c4a4d503391b1a648a08a4947c2e72a9629b169eddf50738b16a16a82f2a26967e4db2902e4a9157de5a73ae638db48e392117ffbd591e9fafd6b1725cd01a0'
+            '3bdbc8f213e9bdba946636498d21486e2b79d8ae44a45b284b4dff8875e76f992ab0977e3ed510525a8f74203028acb6b15315fda963666012874be4ce4fdd93')
 
 prepare() {
-	cd lsof_$pkgver
-	tar xf lsof_${pkgver}_src.tar
-	cd lsof_${pkgver}_src
-	sed -i 's|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|' dialects/linux/machine.h
+  cd lsof-${pkgver}
+  sed -i 's|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|' dialects/linux/machine.h
+  sed -i "s|.so ./version|.ds VN ${pkgver}|" -i Lsof.8
 }
 
 build() {
-	cd lsof_$pkgver/lsof_${pkgver}_src
-	./Configure -n linux
-	make 
+  cd lsof-${pkgver}
+  ./Configure -n linux
+  make CC="cc ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}"
 }
 
-check() {
-	cd lsof_$pkgver/lsof_${pkgver}_src/tests
-	sed 's/END=0/exit 0/' -i CkTestDB
-	make all
-}
-
 package() {
-	cd lsof_$pkgver/lsof_${pkgver}_src
+  cd lsof-${pkgver}
 
-	install -Dm0755 lsof "$pkgdir"/usr/bin/lsof 
-	install -Dm0644 lsof.8 "$pkgdir"/usr/share/man/man8/lsof.8 
-   
-	install -D -m0644 "$srcdir"/license.txt \
-	     "$pkgdir"/usr/share/licenses/lsof/LICENSE 
+  install -Dm 755 lsof -t "${pkgdir}"/usr/bin
+  install -Dm 644 Lsof.8 "${pkgdir}"/usr/share/man/man8/lsof.8
+  install -Dm 644 "${srcdir}"/license.txt \
+       "${pkgdir}"/usr/share/licenses/lsof/LICENSE
 }
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list