summaryrefslogtreecommitdiff
path: root/user/perl-convert-color/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-convert-color/APKBUILD')
-rw-r--r--user/perl-convert-color/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/user/perl-convert-color/APKBUILD b/user/perl-convert-color/APKBUILD
new file mode 100644
index 000000000..889d53cbc
--- /dev/null
+++ b/user/perl-convert-color/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
+# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
+pkgname=perl-convert-color
+_pkgreal=Convert-Color
+_author=PEVANS
+_au=${_author%%"${_author#??}"}
+_a=${_author%%"${_author#?}"}
+pkgver=0.12
+pkgrel=0
+pkgdesc="Perl utilities for color conversion"
+url="https://metacpan.org/pod/Convert::Color"
+arch="noarch"
+license="GPL-1.0+ OR Artistic-1.0-Perl"
+depends="perl"
+checkdepends="perl-test-number-delta"
+makedepends="perl-list-utilsby perl-module-build perl-module-pluggable"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ perl Build.PL --destdir="$pkgdir" --prefix="/usr" --installdirs="vendor"
+ ./Build
+}
+
+check() {
+ ./Build test
+}
+
+package() {
+ ./Build install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="501690e4fbfdc7c16265a28f2ff7945cdf595e422680d786866e4854cc72345eddf2c2b7756977c5254fd97419289e2c51c64dfda49b20e20b5d026e26a61673 Convert-Color-0.12.tar.gz"