upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / perl-search-xapian / repos / community-x86_64 / PKGBUILD
blobd589c7b5b1ecc1ae8749ed9bb3096ab94c30e597
1 # Maintainer: Morten Linderud <foxboron@archlinux.org>
2 # Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
4 _pkg="Search-Xapian"
5 pkgname='perl-search-xapian'
6 pkgver='1.2.25.5'
7 pkgrel=2
8 pkgdesc="Perl XS frontend to the Xapian C++ search library."
9 arch=('x86_64')
10 url='https://metacpan.org/release/Search-Xapian'
11 license=('PerlArtistic' 'GPL')
12 options=('!emptydirs')
13 depends=('perl' 'perl-devel-leak' 'xapian-core')
14 source=("http://search.cpan.org/CPAN/authors/id/O/OL/OLLY/Search-Xapian-$pkgver.tar.gz")
15 sha512sums=('3099ba3f8726029d7a5c916f6b05d2d7cea41534b0f364687c7d9e0212340dca2a313a1ac8e0f6531a7c1084c8833a0e6d45bcff8fec32e0a6e5922bc0bcb81f')
17 build() {
18   cd "$_pkg-${pkgver}"
19   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
20   perl Makefile.PL
21   make
24 check() {
25   cd "$_pkg-${pkgver}"
26   export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
27   make test
30 package() {
31   cd "$_pkg-${pkgver}"
32   make INSTALLDIRS=vendor DESTDIR="$pkgdir" install