aboutsummaryrefslogtreecommitdiffstats
path: root/main/ack/APKBUILD
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-03-31 10:57:58 +0000
committerJakub Jirutka <jakub@jirutka.cz>2018-03-31 17:38:53 +0200
commita7a19674bec66451f937eb018091c4b132323b53 (patch)
tree83ffc300500cf172638d8cb7b3a4559af3891aaf /main/ack/APKBUILD
parenta57b2f99f08581124457e0e88247e7ae57003bc8 (diff)
downloadaports-a7a19674bec66451f937eb018091c4b132323b53.tar.bz2
aports-a7a19674bec66451f937eb018091c4b132323b53.tar.xz
main/ack: upgrade to 2.22, modernize and add check
Diffstat (limited to 'main/ack/APKBUILD')
-rw-r--r--main/ack/APKBUILD23
1 files changed, 15 insertions, 8 deletions
diff --git a/main/ack/APKBUILD b/main/ack/APKBUILD
index 0c2172af5b..ba8e0e35a0 100644
--- a/main/ack/APKBUILD
+++ b/main/ack/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ack
-pkgver=2.18
+pkgver=2.22
pkgrel=0
pkgdesc="A Perl-powered replacement for grep"
url="http://betterthangrep.com/"
@@ -9,20 +9,27 @@ arch="noarch"
license="Artistic-2.0"
depends="perl-file-next perl"
makedepends="perl-dev"
+checkdepends="bash"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/$pkgname-$pkgver.tar.gz"
-_builddir="$srcdir/$pkgname-$pkgver"
+builddir="$srcdir/$pkgname-$pkgver"
+
build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="4147161baa8d82fb84b29980d5eac7cf3197733192ca827d3fa4e8f55fa9df29d92b2ac21beb69df00186eea03c7ae6fcb85d6e4334a0a21c232ddeb4933bcf5 ack-2.18.tar.gz"
+sha512sums="d0073c424d861f2cfdc2ce8c0dfa149620803b4c30adb6c6f4f8896277ac89bb6d97d3e8e9bdfd1202f95808bd387b2e3a8353a3e7d204cdd61eb9cafde48303 ack-2.22.tar.gz"