summaryrefslogtreecommitdiffstats
path: root/main/perl-sys-mmap/APKBUILD
blob: 51ed44e35a467adbec6e27793a0281e3e61976f5 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-sys-mmap
_realname=Sys-Mmap
pkgver=0.17
pkgrel=0
pkgdesc="Uses mmap to map in a file as a Perl variable"
url="http://search.cpan.org/~toddr/Sys-Mmap-$pkgver/"
arch="all"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/$_realname-$pkgver.tar.gz"

_builddir="$srcdir/$_realname-$pkgver"
build() {
	cd $_builddir
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make && make test || return 1
}
package() {
	cd $_builddir
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}
md5sums="1fc827d67d468c594ab486c58047d57c  Sys-Mmap-0.17.tar.gz"
sha256sums="fd74cfa1b515c3832cd9db79839628160f878d74038e34859f216a4c1ad29816  Sys-Mmap-0.17.tar.gz"
sha512sums="004d6160323bb185fe23295679dc0c1e8f2696ce3760c0ae6922e3a21ba7b5deb1893b2e65c5b83c6897060d589ed4bd6b5f3b703172f98a8ed57e99a0b2bad9  Sys-Mmap-0.17.tar.gz"