aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/perl-search-xapian/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/perl-search-xapian/APKBUILD')
-rw-r--r--unmaintained/perl-search-xapian/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/unmaintained/perl-search-xapian/APKBUILD b/unmaintained/perl-search-xapian/APKBUILD
new file mode 100644
index 0000000000..894e9f243a
--- /dev/null
+++ b/unmaintained/perl-search-xapian/APKBUILD
@@ -0,0 +1,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"