aboutsummaryrefslogtreecommitdiffstats
path: root/main/ack/APKBUILD
blob: e2604b50f9498958bcfcde8e45eb7a7faa61ad9b (plain) (blame)
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.0.2
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/$pkgname-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="26fa5c0a1bff34735042f1a24fc1e78ac6a3837ca85fe1dfa49b297049bf7fe0eacd31b6294844044182d28a011c85d028efb374d7c1e5b000d9fdff9555e373  ack-v3.0.2.tar.gz"