summaryrefslogtreecommitdiff
path: root/user/perl-mime-types
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-mime-types')
-rw-r--r--user/perl-mime-types/APKBUILD14
1 files changed, 7 insertions, 7 deletions
diff --git a/user/perl-mime-types/APKBUILD b/user/perl-mime-types/APKBUILD
index 56e6c0faf..6b004243a 100644
--- a/user/perl-mime-types/APKBUILD
+++ b/user/perl-mime-types/APKBUILD
@@ -1,32 +1,32 @@
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-mime-types
-_pkgname=MIME-Types
+_pkgreal=MIME-Types
+_author=MARKOV
+_au=${_author%%"${_author#??}"}
+_a=${_author%%"${_author#?}"}
pkgver=2.17
pkgrel=0
pkgdesc="Definition of MIME types for Perl"
url="https://metacpan.org/release/MIME-Types"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-2.0-only"
-depends=""
+depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
-source="https://cpan.metacpan.org/authors/id/M/MA/MARKOV/MIME-Types-$pkgver.tar.gz"
-builddir="$srcdir/MIME-Types-$pkgver"
+source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
build() {
- cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd "$builddir"
make test
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}