desktop/ack/PKGBUILD

25 lines
658 B
Bash
Raw Normal View History

pkgname=ack
2017-03-24 21:06:54 +08:00
pkgver=2.17.02
_ver=${pkgver%.*}_${pkgver##*.}
2011-10-11 20:01:45 +08:00
pkgrel=1
pkgdesc="A Perl-based grep replacement, aimed at programmers with large trees of heterogeneous source code"
2013-12-04 07:02:23 +08:00
arch=('x86_64')
url="http://betterthangrep.com/"
license=('GPL' 'PerlArtistic')
depends=('perl-file-next')
options=('!emptydirs')
categories=('programming')
2017-02-28 06:39:44 +08:00
source=(https://github.com/petdance/ack2/archive/${_ver}.tar.gz)
2017-03-24 21:06:54 +08:00
sha256sums=('4aa7e67b87bb8850fb2b2a8bf036e384bfa5fe0388ac483acf1ce430dc5d4fb4')
build() {
2017-02-28 06:39:44 +08:00
cd "$srcdir/ack2-$_ver"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
2017-02-28 06:39:44 +08:00
cd "$srcdir/ack2-$_ver"
make DESTDIR="$pkgdir" install
}