aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-dbd-sqlite/APKBUILD
blob: 744c27f867e9cae4172841cdd6ed74b8bf97d137 (plain) (tree)
1
2
3
4
5
6
7
8
                                           
                                                     
                       
                   
           
        
                                      
                                            


                          
                                      
                                                                                     

                                      
                                       
                                      

           


                                                                 


         








                                                                


           


                                                                           

 
                                                                                                                                                                    
                                                                                                                                                                 
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-dbd-sqlite
_pkgname=DBD-SQLite
pkgver=1.64
pkgrel=2
pkgdesc="Perl CPAN DBD::SQLite module"
url="https://metacpan.org/release/$_pkgname"
arch="all"
license="GPL PerlArtistic"
depends="perl-dbi"
makedepends="perl perl-dev sqlite-dev"
source="https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/${_pkgname}-$pkgver.tar.gz
	perl-DBD-SQLite-bz543982.patch
	"
subpackages="$pkgname-dev $pkgname-doc"
builddir="$srcdir"/${_pkgname}-$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
}

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="36a227193b4544c7cec24eec50ee51f46c00a2dad99ab7b8899b0417ea928a1e223f4052fb75f2d641cbfa4408192492ba8943fdb92520dc9888014467f503a4  DBD-SQLite-1.64.tar.gz
00961932f9f89d9b46e6134150c2628aadd4cfa7159cb1604de023fedc919087fbf982b72fd51610e1ca390234cd939e74430b270131d0b30cedb97ba6203b49  perl-DBD-SQLite-bz543982.patch"