aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-config-inifiles/APKBUILD
blob: 603ec32131bc680d1921ba7ac7bdc77bc3b9a287 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                      
                        

           
                                                              
                                                  

                          
                                 
                                 
                      
                                                         
                          

                                                                                         

           



                                                                



                                                                 








                                                                


           

                                      


                                                                           
                                                                                                                                                                          
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-config-inifiles
_pkgname=Config-IniFiles
pkgver=2.98
pkgrel=0
pkgdesc="A module for reading .ini-style configuration files."
url="http://search.cpan.org/dist/Config-IniFiles/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-list-moreutils"
cpanmakedepends="perl-io-stringy"
depends="$cpandepends"
makedepends="perl-dev perl-module-build $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/${_pkgname}-${pkgver}.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	default_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
}

check() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

sha512sums="658e0df3480bd4c6fc8490ac860e0497dc3222349e48905afa86a649e44bf0b29308cce35ed4bffe6259a89dc0ce302e3432aca04c0c55201196312c25cf6bd6  Config-IniFiles-2.98.tar.gz"