aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-inline/APKBUILD
blob: d5d171e40b6ef1347edbee3fbd166e20126d8752 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-inline
_realname=Inline
pkgver=0.80
pkgrel=1
pkgdesc="Write Perl subroutines in other programming languages"
url="http://search.cpan.org/~ingy/Inline/"
arch="noarch"
license="Artistic-1.0 GPL+"
depends="perl"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/I/IN/INGY/$_realname-$pkgver.tar.gz
	"

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

prepare() {
	cd $_builddir
	return 0
}

build() {
	cd $_builddir

	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

md5sums="510bbac46e727bcaf240b7feac2646c9  Inline-0.80.tar.gz"
sha256sums="7e2bd984b1ebd43e336b937896463f2c6cb682c956cbd2c311a464363d2ccef6  Inline-0.80.tar.gz"
sha512sums="e64f7752f32fd07c7c7a975429e04730f2987c9588f99b95502d4e5c87d458736a606c03943a68660940c3987cd632ad2f75ec3862342956c1754b1aca86e0bb  Inline-0.80.tar.gz"