aboutsummaryrefslogtreecommitdiffstats
path: root/main/xapian-omega
diff options
context:
space:
mode:
Diffstat (limited to 'main/xapian-omega')
-rw-r--r--main/xapian-omega/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/main/xapian-omega/APKBUILD b/main/xapian-omega/APKBUILD
new file mode 100644
index 0000000000..2d8f148fc0
--- /dev/null
+++ b/main/xapian-omega/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=xapian-omega
+pkgver=1.2.19
+pkgrel=5
+pkgdesc="Indexers and CGI search frontend for Xapian"
+url="http://www.xapian.org/"
+arch="all"
+license="GPL2+"
+depends=""
+depends_dev="xapian-core-dev perl-dev pcre-dev zlib-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://oligarchy.co.uk/xapian/${pkgver}/$pkgname-$pkgver.tar.xz"
+
+_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 \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc/$pkgname \
+ --enable-static=no
+ make || return 1
+}
+
+package() {
+ local f
+ cd "$_builddir"
+ make DESTDIR=$pkgdir install || return 1
+ install -Dm755 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="286f445c9d37f0692f5ffb1b20d1ec77 xapian-omega-1.2.19.tar.xz"
+sha256sums="ca0a9afe2d1ced933408fc0b089c96cd55f90d7b06ae9708eb84294cd77e35ed xapian-omega-1.2.19.tar.xz"
+sha512sums="95be43eb25c7da59db7c396879a1bc35df70f0412a66d56c8ef1bc90d7f5930bc8e83fc5e1b3bc8a791fa92ea6e705fb0df5833265f4e95cd8bcce49dda7c976 xapian-omega-1.2.19.tar.xz"