aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-regexp-tr/APKBUILD
blob: 525c8edb4882c216bd4858afa7342c0794170ff5 (plain) (tree)
1
2
3
4
5
6
7
                                                      

                                                           


                      
        




                                            
                  




                                                                                  
                                    

           


                       




                                                                 
                      
                                                               





                      


           

                                      


                                                                           
                                                                                                                                                                    
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-regexp-tr
_pkgreal=Regexp-Tr
pkgver=0.05
pkgrel=1
pkgdesc="Run-time-compiled tr/// objects."
url="http://search.cpan.org/dist/Regexp-Tr/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/C/CH/CHIA/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$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"
        make test
}

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

sha512sums="2ef505f63790146fb57e76da5cea604c62d98b214b5db2eadd617059d29c3a8c7f923a4a5dc1f9152fbe36fea6f069821292b7fa2c38cc6f82fc536909eed5f9  Regexp-Tr-0.05.tar.gz"