summaryrefslogtreecommitdiffstats
path: root/main/ack/APKBUILD
blob: e94130fb487b0c85230492d5a01a5d6f0da23bdc (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
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ack
pkgver=2.04
pkgrel=0
pkgdesc="A Perl-powered replacement for grep"
url="http://betterthangrep.com/"
arch="noarch"
license="GPL"
depends="perl-file-next"
makedepends="perl-dev"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="bfd1b9fc4e79b6cad1c410406e199fe5  ack-2.04.tar.gz"
sha256sums="7c58d72f61eec4e6e57a418f3a63c6735eafad20d6c319279fe33edc41ef9ac4  ack-2.04.tar.gz"
sha512sums="def9bd2cff18f275d02cc6f4da512db22a9fcc2913d6a3e8aab3b302bc170a4c562a4f56d24f094fb91fe8022e89f5386954fce4aaccbc940733e7109cdeebb6  ack-2.04.tar.gz"