updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / perl-getopt-lazy / PKGBUILD
blobd400d7e97aa18274269152d6fdd92a8b8fd8d081
1 pkgname=perl-getopt-lazy
2 pkgver=0.0.6
3 pkgrel=1
4 pkgdesc="Yet another lazy, minimal way of using Getopt::Long"
5 license="GPL"
6 url="http://cpan.uwinnipeg.ca/dist/Getopt-Lazy"
7 arch=('i686')
8 depends=(perl)
9 makedepends=()
10 conflicts=()
11 replaces=()
12 backup=()
13 install=
14 source=(http://www.cpan.org/modules/by-module/Getopt/Getopt-Lazy-v${pkgver}.tar.gz)
15 md5sums=('789ba3827c96ef968f1e3c75ad873d98')
18 perlver=$(pacman -Q perl | egrep -o '[0-9.]{5}')
20 build() {
21   cd $startdir/src/Getopt-Lazy-v$pkgver
22   /usr/bin/perl Makefile.PL
23   # ugly hack to make install location
24   # compatible with newer versions of perl.
25   /bin/sed -i "s:$perlver:current:g" Makefile
26   /usr/bin/make || return 1
27   /usr/bin/make install DESTDIR=$startdir/pkg