summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4322f467a7ad002b7d82dcc70a29e3aecf3b244e (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
# Maintainer: Frederik Schwan <freswa at archlinux dot org>

pkgname=perl-json-webtoken
pkgver=0.10
pkgrel=3
pkgdesc="Perl/CPAN module JSON WebToken"
arch=('any')
url="https://metacpan.org/release/JSON-WebToken"
license=('GPL')
depends=('perl-json')
makedepends=('perl-module-build' 'perl-module-runtime' 'perl-test-mock-guard'
             'perl-test-requires')
source=("https://cpan.metacpan.org/authors/id/X/XA/XAICRON/JSON-WebToken-${pkgver}.tar.gz")
b2sums=('823f09e7d0c2d325de19c0d0f1204d1d0573407978c6d86119e052264c16d8c81a49ee74a9551bcbbe8f054916cd02236e4fb8f0c26ee5e539b71e1a30cdceb6')

build() {
  cd JSON-WebToken-${pkgver}
  perl Build.PL
  ./Build
}

check() {
  cd JSON-WebToken-${pkgver}
  ./Build test
}

package(){
  cd JSON-WebToken-${pkgver}
  ./Build install --destdir "${pkgdir}"
}