aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-inline/APKBUILD
blob: d852bebf4a2a661b1c6ca9d0472aba70d009e288 (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
vmajor=0.53
pkgver=${vmajor}.${vminor}
pkgrel=0
pkgdesc="Write Perl subroutines in other programming languages"
url="http://search.cpan.org/~sisyphus/"
arch="noarch"
license="Unknown"
depends="perl"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SI/SISYPHUS/$_realname-${vmajor}.tar.gz"

_builddir="$srcdir"/$_realname-${vmajor}

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="7d0133546d2243e5dfcb1b5a75f9011e  Inline-0.53.tar.gz"
sha256sums="737c9a7b94e622d413115f555691e5f07b4a196edd8bb7a986be163796552240  Inline-0.53.tar.gz"
sha512sums="3efdb79c71167f6a9fc222c20f910614c4e27cb2b062335ebf54376477692aea973f96405c95965b86468084599a5ad2d7c473a93953ea82eed226208845ad47  Inline-0.53.tar.gz"