diff options
author | Elias Elwyn | 2024-02-14 15:13:44 +1100 |
---|---|---|
committer | Elias Elwyn | 2024-02-14 15:13:44 +1100 |
commit | 657171f551ae843af42f34a77fa6f530011ec406 (patch) | |
tree | 8eab75d4d653cc40631bc35d896da2161a141fc2 /PKGBUILD | |
download | aur-perl-pdl-graphics-colorspace.tar.gz |
feat: add PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8316466cd129 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Elias Elwyn <a@jthv.ai> + +pkgname=perl-pdl-graphics-colorspace +pkgver=0.203 +pkgrel=1 +pkgdesc='Image color space conversions' +_dist=PDL-Graphics-ColorSpace +arch=(x86_64) +url="https://metacpan.org/release/$_dist" +license=(GPL PerlArtistic) +depends=(perl perl-pdl) +checkdepends=(perl-test-simple) +options=('!emptydirs' purge) +source=("https://cpan.metacpan.org/authors/id/E/ET/ETJ/$_dist-$pkgver.tar.gz") +sha256sums=(3115044e4eec228894ec1b46b9cda5e89af1f24bb41be453dae2b790216d0511) + +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" +} |