aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-time-hires/APKBUILD
blob: b510bfcfd2f860ae6097273ac8383048431af8cc (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                      
                                                      
                       

                   
        
                                                                     
                                             
          
                                        



                                       
                          


                                                                                    
 
           
                       


                                                                 
 
         
                                                                
            


           
                                      


                                                                           
         

                                                                     
                   
                

 


                           

 
                                                                                                                                                                       
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-time-hires
_pkgname=Time-HiRes
pkgver=1.9760
pkgrel=0
pkgdesc="High resolution alarm, sleep, gettimeofday, interval timers"
url="http://search.cpan.org/~jhi/Time-HiRes/"
arch="all"
license="GPL-1.0-only Artistic-1.0-Perl"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
options="!check" # see comment below
source="https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/Time-HiRes-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	default_prepare
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

check() {
	# tests depends on hi res support of timestamps in filesystem
	# we cannot guarantee that we have that so skip tests for now
	# make test
	return 0
}

doc() {
	default_doc
	replaces="perl-doc"
}

sha512sums="f355566740cb5d4dd533da2cb9209d955e5b7f6ed9e67c7fa37ca8336bacffe32d037700104915580c5a00534b5f2ff502542c4c4114e5f67e51e46856128b2a  Time-HiRes-1.9760.tar.gz"