summaryrefslogblamecommitdiff
path: root/system/perl-dbd-sqlite/APKBUILD
blob: 066b7b4b8994913eea5c369c6a683acb2dfc755a (plain) (tree)
1
2
3
4
5
6
7
8



                                                                   
           

                                
                                             

































                                                                                       
                                                                                                                                                                    
                                                                                                                                                                 
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-dbd-sqlite
_pkgname=DBD-SQLite
pkgver=1.62
pkgrel=0
pkgdesc="Perl DBI SQLite module"
url="https://metacpan.org/release/DBD-SQLite"
arch="all"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl-dbi"
makedepends="perl perl-dev sqlite-dev"
source="http://search.cpan.org/CPAN/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="b452a6245deb0dcc5906167f6ff14d55d70b4f05a1e8113c41810a34f9b75263c2d43f88bb909d872004795ec7d9f4ed93b68ffb5639be7dad9e44e0c8e8439f  DBD-SQLite-1.62.tar.gz
00961932f9f89d9b46e6134150c2628aadd4cfa7159cb1604de023fedc919087fbf982b72fd51610e1ca390234cd939e74430b270131d0b30cedb97ba6203b49  perl-DBD-SQLite-bz543982.patch"