aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-dbd-odbc/APKBUILD
blob: 0328db56d1d06f120c9ace41baf72f1bc8fb32fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-dbd-odbc
_pkgname=DBD-ODBC
pkgver=1.59
pkgrel=0
pkgdesc="Perl CPAN DBD::ODBC module"
url="http://search.cpan.org/dist/DBD-ODBC/"
arch="all"
license="GPL PerlArtistic"
depends="perl perl-dbi"
makedepends="perl perl-dev unixodbc-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MJ/MJEVANS/DBD-ODBC-$pkgver.tar.gz"
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="e7a59fd33a58803864a9188b4e58c7ae441838d08ff3b08487c22166185d5f21d26774303039f3750da69985e66d0c4224e7d52bb9a89d206230e2033f07265b  DBD-ODBC-1.59.tar.gz"