diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 44 |
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..81cda6d026ba --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = perl-alien-build-plugin-pkgconfig-ppwrapper + pkgdesc = Alien::Build plugin to ensure the pure perl PkgConfig is not run by the MSYS perl + pkgver = 0.01 + pkgrel = 1 + url = https://metacpan.org/release/Alien-Build-Plugin-PkgConfig-PPWrapper + arch = any + license = GPL + license = PerlArtistic + checkdepends = perl-capture-tiny + checkdepends = perl-data-dump + checkdepends = perl-test2-suite + depends = perl + depends = perl-alien-build + depends = perl-path-tiny + options = !emptydirs + options = purge + source = https://cpan.metacpan.org/authors/id/S/SL/SLAFFAN/Alien-Build-Plugin-PkgConfig-PPWrapper-0.01.tar.gz + sha256sums = 0c87a75c8781c9bcf4c58ebc67b3de152b6f36d681ff33f0b38b1e507f144bcc + +pkgname = perl-alien-build-plugin-pkgconfig-ppwrapper diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..c906e75958f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/pkg/ +/src/ +*.tar.* 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" +} |