summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5f990b731995a4fb1b17b8c47550af336357ea9 (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
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Yardena Cohen <yardenack at gmail dot com>

cpaname=Lexical-Accessor
cpanauthor=TOBYINK
pkgname=perl-lexical-accessor
pkgver=0.014
pkgrel=1
pkgdesc="Perl Lexical::Accessor CPAN module"
arch=('any')
url="http://search.cpan.org/dist/${cpaname}/"
license=('unknown')
options=('!emptydirs')
checkdepends=(
    'perl-class-tiny'
    'perl-moo'
    'perl-moose'
    'perl-mouse'
    'perl-sub-handlesvia'
)
depends=(
    'perl'
    'perl-hash-fieldhash'
    'perl-test-fatal'
    'perl-test-requires'
    'perl-type-tiny'
)
source=("http://www.cpan.org/authors/id/${cpanauthor::1}/${cpanauthor::2}/${cpanauthor}/${cpaname}-${pkgver}.tar.gz")
sha256sums=('8037db3b2ccc3c176d8b0529278b7dd781cf937999093cfe6868992aa558e034')

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

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

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