summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-sub-name/PKGBUILD
blob: c671f5bcef38036d84fe892b84d777dbda8a19bb (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
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>
# Contributor: Justin Davis <jrcd83@gmail.com>

pkgname=perl-sub-name
_cpanname=Sub-Name
pkgver=0.21
pkgrel=4
pkgdesc="(re)name a sub"
arch=('x86_64')
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
url="http://search.cpan.org/dist/$_cpanname"
source=("http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_cpanname-$pkgver.tar.gz")
md5sums=('7e7a181e30b3249d0b81585f55e36621')

build() {
  cd "$srcdir/$_cpanname-$pkgver"
  perl Makefile.PL
  make
}

check() {
  cd "$srcdir/$_cpanname-$pkgver"
  make test
}

package() {
  cd "$srcdir/$_cpanname-$pkgver"
  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}