summaryrefslogtreecommitdiffstats
path: root/main/perl-date-manip/APKBUILD
blob: 6ab42f904aaa5bb79ecd8b5d7696c8bd7d178b5f (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
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Mika Havela <mika.havela@gmail.com>
pkgname=perl-date-manip
_realname=Date-Manip
pkgver=6.23
pkgrel=0
pkgdesc="Perl - Date manipulation routines"
url="http://search.cpan.org/~sbeck/$_realname-$pkgver/"
arch="noarch"
license="Artistic GPL"
depends="perl perl-test-pod perl-test-inter perl-yaml-syck perl-test-pod-coverage"
makedepends="perl-dev"
#subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/$_realname-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	perl Build.PL || return 1
	./Build test || return 1
}

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

md5sums="e00c4c5758ac3692db99422e7c389675  Date-Manip-6.23.tar.gz"