aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-search-xapian/APKBUILD
blob: 894e9f243ac68318d1d466b5e592ad9799cd79b1 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-search-xapian
_pkgreal=Search-Xapian
pkgver=1.2.23.0
pkgrel=0
pkgdesc="Perl XS frontend to the Xapian C++ search library."
url="http://search.cpan.org/dist/Search-Xapian/"
arch="all"
license="GPL PerlArtistic"
cpandepends="perl"
cpanmakedepends="perl-devel-leak perl-test-pod perl-test-pod-coverage"
depends="$cpandepends"
makedepends="perl-dev xapian-core-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://oligarchy.co.uk/xapian/${pkgver/.0//}/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL XAPIAN_CONFIG=/usr/bin/xapian-config INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

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

md5sums="9b52b1aaef20b6904df7237b6ea71085  Search-Xapian-1.2.23.0.tar.gz"
sha256sums="90ea2e962f9a4e5f73719bd30b877f5272da886f3693d3a961f4d84b2ef34402  Search-Xapian-1.2.23.0.tar.gz"
sha512sums="48d47e4edc5f752fc31c4142ce3c92a8ead122d4d872326a153fcb9f8667da4101384a3e06375ebb8d2e3148df744484e92bedad7bf4743417c84018ccda9526  Search-Xapian-1.2.23.0.tar.gz"