archrelease: copy trunk to community-any
[arch-community.git] / perl-sub-name / trunk / PKGBUILD
blob2b4bc7bc8d26c22b41abb475bf95b3835fcf5673
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>
3 # Contributor: Justin Davis <jrcd83@gmail.com>
5 pkgname=perl-sub-name
6 _cpanname=Sub-Name
7 pkgver=0.27
8 pkgrel=1
9 pkgdesc="(re)name a sub"
10 arch=('x86_64')
11 license=('PerlArtistic' 'GPL')
12 depends=('perl')
13 options=('!emptydirs')
14 url="https://search.cpan.org/dist/$_cpanname"
15 source=("https://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_cpanname-$pkgver.tar.gz")
16 sha256sums=('ecf36fba1c47ca93e1daa394968ed39c4186867459d9cd173c421e2b972043e8')
18 build() {
19   cd "$srcdir/$_cpanname-$pkgver"
20   perl Makefile.PL
21   make
24 check() {
25   cd "$srcdir/$_cpanname-$pkgver"
26   make test
29 package() {
30   cd "$srcdir/$_cpanname-$pkgver"
31   make install INSTALLDIRS=vendor DESTDIR="$pkgdir"