diff options
author | Dirk Langer | 2022-02-18 07:20:25 +0100 |
---|---|---|
committer | Dirk Langer | 2022-02-18 07:20:25 +0100 |
commit | 5261f3fa437bd996cec1c8ab75237345a35ee228 (patch) | |
tree | e4867e791bd78be40e8957b7e7de31c212453f64 /PKGBUILD | |
download | aur-5261f3fa437bd996cec1c8ab75237345a35ee228.tar.gz |
version 3.2.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d8fbc58b1834 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Contributor: Ordoban <dirk.langer@vvovgonik.de> +# Generator : CPANPLUS::Dist::Arch 1.32 + +pkgname='perl-git-hooks' +pkgver='3.2.1' +pkgrel='1' +pkgdesc="Framework for implementing Git (and Gerrit) hooks" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl-email-sender>=0' 'perl-email-simple>=0' 'perl-git-repository>=0' 'perl-git-repository-plugin-log>=0' 'perl-io-interactive>=0' 'perl-list-moreutils>=0' 'perl-log-any>=0' 'perl-path-tiny>=0.060' 'perl-text-glob>=0' 'perl-uri>=0') +makedepends=() +checkdepends=('perl-test-requires-git>=0') +url='https://metacpan.org/release/Git-Hooks' +source=("http://search.cpan.org/CPAN/authors/id/G/GN/GNUSTAVO/Git-Hooks-$pkgver.tar.gz") +md5sums=('c0057045d085e5d03afcfb8c220537fe') +sha512sums=('e99c9056bc9f3fd03091fb7cfbaa6207332a463b0fb6a08cd440cdbbfd75ccc29390eed889d2bed2ac728de852745db7a0692b4969e33cd88097c9a1cf625d52') +_distdir="Git-Hooks-$pkgver" + +build() { + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + + cd "$srcdir/$_distdir" + /usr/bin/perl Makefile.PL + make +} + +check() { + cd "$srcdir/$_distdir" + export PERL_MM_USE_DEFAULT=1 PERL5LIB="." + make test +} + +package() { + cd "$srcdir/$_distdir" + make install + + find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: |