aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-class-singleton/APKBUILD
blob: 7fb26e64d77ac4b84343e30a4cf14406ce820e65 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

                                                   

                        
        
                                                   
                                                   
             




                                       
                          
                                                                                

                                     
 
           
                       

                                                                 



                       

                                                               







                                                                           
                                                                                                                                                                         
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-class-singleton
_pkgreal=Class-Singleton
pkgver=1.5
pkgrel=2
pkgdesc="Base class for creating singleton objects"
url="https://metacpan.org/release/Class-Singleton/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SH/SHAY/$_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
}

sha512sums="f061a8b92d5f65e4fbcd14ef36ff1216f84443f487de34c98f7d08d6d18148f156c0cbd6249e75ac448c17547d1172dbda8b670a8e7573d3581c9c1196eb4804  Class-Singleton-1.5.tar.gz"