# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-search-xapian _pkgreal=Search-Xapian pkgver=1.2.22.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" depends="$cpandepends" makedepends="perl-dev xapian-core-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://oligarchy.co.uk/xapian/1.2.22/$_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="ee14be64b5f2d1574fd8d44a628b74a5 Search-Xapian-1.2.22.0.tar.gz" sha256sums="52c24e224c68ed763d50b040c38a21dfc31bc69a7c896a3114262786c03c4edd Search-Xapian-1.2.22.0.tar.gz" sha512sums="2c16d1afbf5e386f716809afaca18967a7517e8c18bc25ef8c8aed2ece11dd2d7a5b3b6c438dea1f4bdd0baad512f36958668852d053bd9ed3db07614c7c9d63 Search-Xapian-1.2.22.0.tar.gz"