aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-ipc-sharelite/APKBUILD
blob: 7527805e51d0c8cfbe92bc0314409c6bf14f0183 (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
42
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=perl-ipc-sharelite
pkgver=0.17
pkgrel=0
pkgdesc="Lightweight interface to shared memory"
url="http://cpansearch.perl.org/src/ANDYA/IPC-ShareLite-$pkgver"
arch="all"
license="PerlArtistic GPL"
depends=""
depends_dev=""
makedepends="$depends_dev perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AN/ANDYA/IPC-ShareLite-$pkgver.tar.gz"

_builddir="$srcdir"/IPC-ShareLite-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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 || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="54c7aa08dc065b6c946c48491d33450d  IPC-ShareLite-0.17.tar.gz"
sha256sums="14d406b91da96d6521d0d1a82d22a306274765226b86b0a56e7ffddcf96ae7bf  IPC-ShareLite-0.17.tar.gz"
sha512sums="f796f6766df11205755de4672ff8a586690545ccaa2f91c3fc65f106f3b61e1cbd86ee3e97dadf787809e3be32f503670cb67dafc9b18eee30d59d8be03b5ee9  IPC-ShareLite-0.17.tar.gz"