Patches for aports can be sent to this list

[alpine-aports] [PATCH] testing/diffstat: upgrade to 1.62, modernize, add check()

alpine-mips-patches
Details
Message ID
<20190222132506.D7C045870B@mx12.valuehost.ru>
Sender timestamp
1550840024
DKIM signature
missing
Download raw message
Patch: +13 -17
---
 testing/diffstat/APKBUILD | 30 +++++++++++++-----------------
 1 file changed, 13 insertions(+), 17 deletions(-)

diff --git a/testing/diffstat/APKBUILD b/testing/diffstat/APKBUILD
index 3e9af925df..ae487be998 100644
--- a/testing/diffstat/APKBUILD
+++ b/testing/diffstat/APKBUILD
@@ -1,37 +1,33 @@
 # Contributor: Leszek CimaƂa <ernierasta@zori.cz>
 # Maintainer:
 pkgname=diffstat
-pkgver=1.61
+pkgver=1.62
 pkgrel=0
 pkgdesc="diffstat reads the output of diff and displays a histogram of the insertions, deletions, and modifications per-file."
-url="http://invisible-island.net/diffstat"
+url="https://invisible-island.net/diffstat"
 arch="all"
 license="MIT"
-depends=""
-depends_dev=""
-makedepends="$depends_dev"
-install=""
 subpackages="$pkgname-doc"
-source="ftp://invisible-island.net/${pkgname}/${pkgname}-${pkgver}.tgz"
-_builddir="$srcdir/$pkgname-$pkgver"
+source="https://invisible-island.net/datafiles/release/${pkgname}.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
 
 build() {
-	cd "$_builddir"
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
 		--prefix=/usr \
 		--sysconfdir=/etc \
 		--mandir=/usr/share/man \
-		--localstatedir=/var \
-		|| return 1
-	make || return 1
+		--localstatedir=/var
+	make
+}
+
+check() {
+	make check
 }
 
 package() {
-	cd "$_builddir"
-	make DESTDIR="$pkgdir" install || return 1
+	make DESTDIR="$pkgdir" install
 }
-md5sums="c048a32d55d8bd6724f382baf41f325f  diffstat-1.61.tgz"
-sha256sums="25359e0c27183f997b36c9202583b5dc2df390c20e22a92606af4bf7856a55ee  diffstat-1.61.tgz"
-sha512sums="48166e1241904b955c0f5543b1f11724a1a91516fcba5ad0603441d985728de3e0fca5f5212704dd0fc9a9e5062788b1b34062869137fd851932233d4abad114  diffstat-1.61.tgz"
+
+sha512sums="a8088ac0c0e38458504da37249c1d51ae9d839044e4cb8a60a1424eca883e1ec4815c1b1a8d9dae60e909b5495e60a9eda88e0a4572392ed8019d27b171688ff  diffstat.tar.gz"
-- 
2.20.1




---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---