diff options
author | Josef Vybíhal | 2019-10-10 10:01:17 +0200 |
---|---|---|
committer | Josef Vybíhal | 2019-10-10 10:01:17 +0200 |
commit | 552c7696cd59fb8b721d8ea94c26b7220ab35f5a (patch) | |
tree | 123007b795fd12f4b6b45765491b2bc35571099e | |
download | aur-552c7696cd59fb8b721d8ea94c26b7220ab35f5a.tar.gz |
init
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 35 |
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a804eaacf590 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = perl-www-useragent-random + pkgdesc = WWW::UserAgent::Random - Perl extension to generate random User Agent + pkgver = 0.03 + pkgrel = 1 + url = https://metacpan.org/release/WWW-UserAgent-Random + arch = any + license = GPL + license = PerlArtistic + depends = perl + options = !emptydirs + options = purge + source = https://www.cpan.org/modules/by-module/WWW/MCANTONI/WWW-UserAgent-Random-0.03.tar.gz + sha256sums = f139adef8863ecd8091db5ebb20842a896c5e6c9911741b81d6adc7f999b6f99 + +pkgname = perl-www-useragent-random + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b7b5195356a6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar.gz +*.tar +pkg/ +src/
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7ccdfdbaf0e9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Contributor: Your Name <youremail@domain.com> +# Author: Matteo Cantoni, <matteo.cantoni@nothink.org> +pkgname=perl-www-useragent-random +pkgver=0.03 +pkgrel=1 +pkgdesc='WWW::UserAgent::Random - Perl extension to generate random User Agent' +_dist=WWW-UserAgent-Random +arch=('any') +url="https://metacpan.org/release/$_dist" +license=('GPL' 'PerlArtistic') +depends=(perl) +options=('!emptydirs' purge) +source=("https://www.cpan.org/modules/by-module/WWW/MCANTONI/$_dist-$pkgver.tar.gz") +sha256sums=('f139adef8863ecd8091db5ebb20842a896c5e6c9911741b81d6adc7f999b6f99') + +build() { + cd "$srcdir/$_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 "$srcdir/$_dist-$pkgver" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + make test +} + +package() { + cd "$srcdir/$_dist-$pkgver" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" +}
\ No newline at end of file |