aboutsummaryrefslogtreecommitdiffstats
path: root/main/ack/APKBUILD
blob: a0d73e1bdcbdb57373d582c55702d28d347776bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ack
pkgver=3.1.1
pkgrel=0
pkgdesc="A Perl-powered replacement for grep"
url="https://beyondgrep.com/"
arch="noarch"
license="Artistic-2.0"
depends="perl-file-next perl"
makedepends="perl-dev"
checkdepends="bash"
subpackages="$pkgname-doc"
source="https://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/ack-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	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
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="4dce1c2e0f4ef618ea722564369060be2a93300925ecb4cd9284fec3290bf998ead9ba43f1be57dc4f3af78d8e16c81649a77164e8e7ba2c47e869da87e92cb6  ack-v3.1.1.tar.gz"