aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/xapian-omega/APKBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/testing/xapian-omega/APKBUILD b/testing/xapian-omega/APKBUILD
index 0592a1dbca..e766965d0c 100644
--- a/testing/xapian-omega/APKBUILD
+++ b/testing/xapian-omega/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=xapian-omega
pkgver=1.2.12
-pkgrel=0
+pkgrel=1
pkgdesc="Indexers and CGI search frontend for Xapian"
url="http://www.xapian.org/"
arch="all"
@@ -17,13 +17,14 @@ _builddir="$srcdir"/$pkgname-$pkgver
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"
./configure XAPIAN_CONFIG=/usr/bin/xapian-config \
--prefix=/usr \
- --sysconfdir=/etc \
+ --sysconfdir=/etc/$pkgname \
--enable-static=no
make || return 1
}
@@ -31,6 +32,13 @@ build() {
package() {
cd "$_builddir"
make DESTDIR=$pkgdir install || return 1
+ install -Dm755 "$srcdir"omega.conf "$pkgdir"/etc/$pkgname/omega.conf
+ mkdir -p "$pkgdir"/var/log/omega
+ mkdir -p "$pkgdir"/var/lib/omega/cdb
+ mkdir -p "$pkgdir"/var/lib/omega/data
+ for f in templates images; do
+ install -d "$pkgdir"/usr/share/omega/$f && cp -ar $f/* "$pkgdir"/usr/share/omega/$f ;
+ done
}
md5sums="7eed3c1e9e6acb703d6587ed9a038265 xapian-omega-1.2.12.tar.gz"