aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-file-basedir/APKBUILD
blob: 2dae7336c7dfc7e76305055b468c47ed591944c8 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                      

           
                                                              
                                              
             
                                            
              

                                                                                       


                                       
                                                                                     
 
                                    

           

                       
                                                               
                                        


         
                      
                                                               





                      


           

                                         


                                                                           
                                                                                                                                                                       
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-file-basedir
_pkgreal=File-BaseDir
pkgver=0.08
pkgrel=0
pkgdesc="Use the Freedesktop.org base directory specification"
url="http://search.cpan.org/dist/File-BaseDir"
arch="noarch"
license="Artistic-1.0-Perl GPL-1.0-or-later"
cpandepends=""
cpanmakedepends="perl-file-which perl-ipc-system-simple perl-module-build perl-test-pod
	perl-test-pod-coverage"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KI/KIMRYAN/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	perl Build.PL installdirs=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build
}

check() {
	cd "$builddir"
	./Build test
}

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

sha512sums="6b44edca34906c34d574933c21c0e3a1a236a431a3ac12caeabcc2638688dfe1c02efc9a1e75a2c2cd522de0dca00df0620cd262c184ec938cc97766d1121f99  File-BaseDir-0.08.tar.gz"