aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-mime-types/APKBUILD
blob: 25e0438d7a681d798b74a40e0da5e0a64c15e62b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-mime-types
_pkgreal=MIME-Types
pkgver=2.11
pkgrel=0
pkgdesc="Definition of MIME types"
url="http://search.cpan.org/dist/MIME-Types/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="f9b354b7d16c4b6a4d40744fcc208484  MIME-Types-2.11.tar.gz"
sha256sums="8c51fd21d5c5c5b3469672faeb76caa02c77f537a3139e018ffed0e521956dec  MIME-Types-2.11.tar.gz"
sha512sums="e5f867d32f57620848054dd9871dc540aa726e74da6bf5983d159879b4efcc97b9e96eff70b65a355dffc3d4bad63532ceb75b8165a440383e1a2b2044b31db1  MIME-Types-2.11.tar.gz"