diff options
author | Elias Elwyn | 2024-02-14 12:57:03 +1100 |
---|---|---|
committer | Elias Elwyn | 2024-02-14 12:59:00 +1100 |
commit | 91dad64dcc87ed833ae11d4cdb8a62e01e7a615a (patch) | |
tree | d60166f5c785e52f8d7be56a0d9a66c8e7a42908 /PKGBUILD | |
download | aur-perl-alien-build-plugin-pkgconfig-ppwrapper.tar.gz |
feat: add PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..42ab9bc62794 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Elias Elwyn <a@jthv.ai> + +pkgname=perl-alien-build-plugin-pkgconfig-ppwrapper +pkgver=0.01 +pkgrel=1 +pkgdesc='Alien::Build plugin to ensure the pure perl PkgConfig is not run by the MSYS perl' +_dist=Alien-Build-Plugin-PkgConfig-PPWrapper +arch=(any) +url="https://metacpan.org/release/$_dist" +license=(GPL PerlArtistic) +depends=( + perl + perl-alien-build + perl-path-tiny +) +checkdepends=( + perl-capture-tiny + perl-data-dump + perl-test2-suite +) +options=('!emptydirs' purge) +source=("https://cpan.metacpan.org/authors/id/S/SL/SLAFFAN/$_dist-$pkgver.tar.gz") +sha256sums=(0c87a75c8781c9bcf4c58ebc67b3de152b6f36d681ff33f0b38b1e507f144bcc) + +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" +} |