summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0574d188c8de672c490cfd61c219bedb5b102c0c (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: freggel.doe <freggel.doe@gmx.net>

pkgname=perl-authen-webauthn
_cpanname=Authen-WebAuthn
_module=Authen::WebAuthn
pkgver=0.005
pkgrel=1
pkgdesc="A library to add Web Authentication support to server applications"
arch=('any')
url="https://metacpan.org/release/$_cpanname"
license=('GPL' 'PerlArtistic')
depends=('perl' 'perl-cbor-xs' 'perl-cryptx' 'perl-crypt-openssl-x509' 'perl-json-xs' 'perl-mouse' 'perl-uri')
makedepends=()
checkdepends=('perl-hash-merge-simple')
options=('!emptydirs')
source=(
    "https://cpan.metacpan.org/authors/id/M/MB/MBESSON/$_cpanname-$pkgver.tar.gz"
)
sha256sums=('d583bf5dacb4fef19379ab24348bfea230cca97c4e078e1836ad0a421200014e')

build() {
    cd "$srcdir/$_cpanname-$pkgver"
    PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
    make
}

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

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

# vim:set ts=4 sw=4 expandtab: