summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 90f7690d3cc80cdbbad3607c339fa8046f392397 (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
# Maintainer: Yardena Cohen <yardenack at gmail dot com>

cpaname=true
cpanauthor=CHOCOLATE
pkgname=perl-true
pkgver=0.18
pkgrel=1
pkgdesc="Perl true CPAN module"
arch=('any')
url="http://search.cpan.org/dist/${cpaname}/"
license=('unknown')
options=('!emptydirs')
depends=(
   'perl'
   'perl-b-hooks-op-annotation'
   'perl-b-hooks-op-check'
   'perl-devel-stacktrace'
   'perl-extutils-depends'
)
source=("http://www.cpan.org/authors/id/${cpanauthor::1}/${cpanauthor::2}/${cpanauthor}/${cpaname}-${pkgver}.tar.gz")
sha256sums=('ff3d041eb2a522ec6194d7a3888325e8a3ef2238ab51452f0b547696be0b4594')

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}"
}