diff options
author | Mark Gallagher | 2023-10-17 12:29:16 +0100 |
---|---|---|
committer | Mark Gallagher | 2023-10-17 12:29:48 +0100 |
commit | 2b54521a952538d5620b0d45620dc4e791824f87 (patch) | |
tree | ce97eff888c31948063162253645b06624d1c086 | |
download | aur-2b54521a952538d5620b0d45620dc4e791824f87.tar.gz |
perl-bankaccount-validator-uk 0.65
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 35 |
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ba71959ad2b8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = perl-bankaccount-validator-uk + pkgdesc = Rules for validating UK bank account (via MetaCPAN distribution) + pkgver = 0.65 + pkgrel = 1 + url = https://metacpan.org/release/BankAccount-Validator-UK + arch = any + license = GPL + license = PerlArtistic + depends = perl + options = !emptydirs + options = purge + source = https://cpan.metacpan.org/authors/id/M/MA/MANWAR/BankAccount-Validator-UK-0.65.tar.gz + sha256sums = c5bdb4500d86deb20c3a9377815de580fd4dbd27233312cc17adf8de80cf720a + +pkgname = perl-bankaccount-validator-uk diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..018a3de08144 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f84ee77a2393 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Contributor: Mark Gallagher <mark@fts.scot> +pkgname=perl-bankaccount-validator-uk +pkgver=0.65 +pkgrel=1 +pkgdesc='Rules for validating UK bank account (via MetaCPAN distribution)' +_dist=BankAccount-Validator-UK +arch=('any') +url="https://metacpan.org/release/$_dist" +license=('GPL' 'PerlArtistic') +depends=('perl') +options=('!emptydirs' 'purge') +source=("https://cpan.metacpan.org/authors/id/M/MA/MANWAR/$_dist-$pkgver.tar.gz") +sha256sums=(c5bdb4500d86deb20c3a9377815de580fd4dbd27233312cc17adf8de80cf720a) + +build() { + cd $_dist-$pkgver + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + /usr/bin/perl Makefile.PL + make +} + +check() { + cd $_dist-$pkgver + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + make test +} + +package() { + cd $_dist-$pkgver + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" +} + |