From 50650f06657dbacbb90d01ee4cc558739c87c71e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Milan=20P=2E=20Stani=C4=87?= <mps@arvanta.net>
Date: Sun, 22 Nov 2020 11:24:07 +0000
Subject: [PATCH] main/lsof: upgrade to 4.94.0

change url to new where development moved
change source to new upstream repository on github.com
modernize a little
---
 main/lsof/APKBUILD | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/main/lsof/APKBUILD b/main/lsof/APKBUILD
index 4548d582005a..6d8400201e52 100644
--- a/main/lsof/APKBUILD
+++ b/main/lsof/APKBUILD
@@ -1,33 +1,30 @@
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=lsof
-pkgver=4.93.2
+pkgver=4.94.0
 pkgrel=0
 pkgdesc="LiSt Open Files"
-url="https://people.freebsd.org/~abe"
+url="https://github.com/lsof-org/lsof"
 arch="all"
 license="lsof"
 subpackages="$pkgname-doc"
 makedepends="linux-headers"
-source="https://fossies.org/linux/misc/lsof-$pkgver.tar.xz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/lsof-org/lsof/archive/$pkgver/lsof-$pkgver.tar.gz"
 
 prepare() {
 	default_prepare
-	cd "$builddir"
 
 	sed -i "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \
 		dialects/linux/machine.h
 }
 
 build() {
-	cd "$builddir"
 	./Configure -n linux
 	make
 }
 
 package() {
-	cd "$builddir"
 	install -Dm0755 lsof "$pkgdir"/usr/bin/lsof
 	install -Dm0644 Lsof.8 "$pkgdir"/usr/share/man/man8/lsof.8
 }
 
-sha512sums="9ce751092bec5d2dccb79d92aa1d7c541819e0e24e56bd0a3ec0513bd7a403c3abb85a68aa5283f84aa44b4f71742ed18f5437cc039c13ce886bf22facd1557a  lsof-4.93.2.tar.xz"
+sha512sums="852b12e621e1dbf71e5f7fd848a200339ca278fbe8c39dcd33f745d1aea4e61552c0f30a3f6469ad9d4b86a9163e677f8c95298159ebd647357734225aa06c0c  lsof-4.94.0.tar.gz"
-- 
GitLab