blob: 3889242c1c479c1f607e7770541e6df80bc4fd90 (
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
|
# Contributor: Spyros Stathopoulos <foucault.online@gmail.com>
# Using Xyne::Arch::CPAN 0.07
pkgname=perl-time-clock
_cpanname=Time-Clock
pkgver=1.03
pkgrel=2
pkgdesc="Twenty-four hour clock object with nanosecond precision."
arch=('i686' 'x86_64')
url="https://search.cpan.org/dist/Time-Clock/"
license=('perl')
source=(https://search.cpan.org/CPAN/authors/id/J/JS/JSIRACUSA/Time-Clock-${pkgver}.tar.gz)
md5sums=('e287f85f0ca0b4e1ef202849cec911fe')
sha256sums=('35e8a8bbfcdb35d86dd4852a9cd32cfb455a9b42e22669186e920c8aca017aef')
depends=('perl>=5.6.0')
makedepends=('perl-extutils-makemaker')
options=(!emptydirs)
build() {
cd ${srcdir}/${_cpanname}-${pkgver}
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
cd ${srcdir}/${_cpanname}-${pkgver}
make install DESTDIR="${pkgdir}"
# remove perllocal.pod and .packlist
find ${pkgdir} -name perllocal.pod -delete
find ${pkgdir} -name .packlist -delete
}
# vim:ts=2:sw=2:et
|