diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-07 18:28:14 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-07 19:14:57 +0000 |
commit | e3e9c00726a6772a45dc6e65b248fa4c882bf433 (patch) | |
tree | 527a2a4d00d14715643ed6b12bc322a829de0785 /community/xapian-omega | |
parent | 36930d67ad9bbe794814fdf5c714fb303b5892a4 (diff) | |
download | aports-e3e9c00726a6772a45dc6e65b248fa4c882bf433.tar.bz2 aports-e3e9c00726a6772a45dc6e65b248fa4c882bf433.tar.xz |
community/xapian-omega: upgrade to 1.4.5,added check(),improved APKBUILD
Diffstat (limited to 'community/xapian-omega')
-rw-r--r-- | community/xapian-omega/APKBUILD | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/community/xapian-omega/APKBUILD b/community/xapian-omega/APKBUILD index c2a6ac5040..a6eb1fa057 100644 --- a/community/xapian-omega/APKBUILD +++ b/community/xapian-omega/APKBUILD @@ -1,41 +1,44 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=xapian-omega -pkgver=1.4.4 +pkgver=1.4.5 pkgrel=0 pkgdesc="Indexers and CGI search frontend for Xapian" url="http://www.xapian.org/" arch="all" license="GPL2+" -depends="" -depends_dev="" makedepends="$depends_dev xapian-core-dev perl-dev pcre-dev zlib-dev file-dev" -install="" subpackages="$pkgname-doc" source="http://oligarchy.co.uk/xapian/${pkgver}/$pkgname-$pkgver.tar.xz" +builddir="$srcdir"/$pkgname-$pkgver -_builddir="$srcdir"/$pkgname-$pkgver prepare() { - cd "$_builddir" + default_prepare + cd "$builddir" sed -i -e "s/std::getchar/getchar/g" urldecode.h sed -i -e "s/template_dir.*/template_dir \/usr\/share\/omega\/templates/g" omega.conf } build() { - cd "$_builddir" + cd "$builddir" ./configure XAPIAN_CONFIG=/usr/bin/xapian-config \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc/$pkgname \ --enable-static=no - make || return 1 + make +} + +check() { + cd "$builddir" + make check } package() { local f - cd "$_builddir" - make DESTDIR=$pkgdir install || return 1 + cd "$builddir" + make DESTDIR=$pkgdir install install -Dm755 omega.conf "$pkgdir"/etc/$pkgname/omega.conf mkdir -p "$pkgdir"/var/log/omega mkdir -p "$pkgdir"/var/lib/omega/cdb @@ -45,4 +48,4 @@ package() { done } -sha512sums="927c6afe24f8a13018fcc233e874c71c0912cb6200094f7246c12b4175bc48d752312e57128a314e7674a948a50ef092dd7f2dc8910db7df8f3ccf9c44f38533 xapian-omega-1.4.4.tar.xz" +sha512sums="895da1e1a3ddf2e5e8576fd41853cc5cb7c6e4f0223a0d25f6303fd01ca26f64c8e41616d6d66b2309a4ca5763b2b20b208dbf6054f0498411f2678422c07893 xapian-omega-1.4.5.tar.xz" |