APKBUILD 1.26 KB
Newer Older
1 2 3 4 5 6
# Automatically generated by apkbuild-cpan, template 1
# Contributor: 
# Maintainer: 
pkgname=perl-types-serialiser
_pkgreal=Types-Serialiser
pkgver=1.0
7
pkgrel=1
8 9 10 11 12
pkgdesc="unknown"
url="http://search.cpan.org/dist/Types-Serialiser/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=
13
cpanmakedepends="perl-common-sense"
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
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/$_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="76460a2bfbc644672499af89192e03fe  Types-Serialiser-1.0.tar.gz"
sha256sums="7ad3347849d8a3da6470135018d6af5fd8e58b4057cd568c3813695f2a04730d  Types-Serialiser-1.0.tar.gz"
sha512sums="b786bcd3ee976a6ad948cc98a9c71d2cdcd30f485528eff059091f6d86ae7078c10ba2dc2982326fcf0184dbfbdddea84daff324c6ec6a129fe6aac01253c8fb  Types-Serialiser-1.0.tar.gz"