# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista setvar pkgname = 'perl-search-xapian' setvar _pkgreal = 'Search-Xapian' setvar pkgver = '1.2.23.0' setvar pkgrel = '0' setvar pkgdesc = ""Perl XS frontend to the Xapian C++ search library."" setvar url = ""http://search.cpan.org/dist/Search-Xapian/"" setvar arch = ""all"" setvar license = ""GPL PerlArtistic"" setvar cpandepends = ""perl"" setvar cpanmakedepends = ""perl-devel-leak perl-test-pod perl-test-pod-coverage"" setvar depends = "$cpandepends" setvar makedepends = ""perl-dev xapian-core-dev $cpanmakedepends"" setvar subpackages = ""$pkgname-doc"" setvar source = ""http://oligarchy.co.uk/xapian/${pkgver/.0//}/$_pkgreal-$pkgver.tar.gz"" setvar _builddir = ""$srcdir/$_pkgreal-$pkgver"" proc 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 } proc build { cd $_builddir export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}) make && make test } proc package { cd $_builddir make DESTDIR="$pkgdir" install || return 1 find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete } setvar md5sums = ""9b52b1aaef20b6904df7237b6ea71085 Search-Xapian-1.2.23.0.tar.gz"" setvar sha256sums = ""90ea2e962f9a4e5f73719bd30b877f5272da886f3693d3a961f4d84b2ef34402 Search-Xapian-1.2.23.0.tar.gz"" setvar sha512sums = ""48d47e4edc5f752fc31c4142ce3c92a8ead122d4d872326a153fcb9f8667da4101384a3e06375ebb8d2e3148df744484e92bedad7bf4743417c84018ccda9526 Search-Xapian-1.2.23.0.tar.gz""