aboutsummaryrefslogtreecommitdiffstats
path: root/testing/diffstat/APKBUILD
diff options
context:
space:
mode:
authoralpine-mips-patches <info@mobile-stream.com>2019-02-22 12:53:44 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-03-06 07:27:26 +0000
commit33180135ca8b6e3f2211bf86325b9650acda9217 (patch)
treed78a0292dbb629666b6bd16197e12b9e2d452660 /testing/diffstat/APKBUILD
parent544ae1dfee70e26f14cfd14a2db2a7147cbbd896 (diff)
downloadaports-33180135ca8b6e3f2211bf86325b9650acda9217.tar.bz2
aports-33180135ca8b6e3f2211bf86325b9650acda9217.tar.xz
testing/diffstat: upgrade to 1.62, modernize, add check()
Diffstat (limited to 'testing/diffstat/APKBUILD')
-rw-r--r--testing/diffstat/APKBUILD30
1 files 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"