aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-07-12 12:51:10 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-07-12 12:51:10 +0000
commit41b8f3500cf4282490948d859f3f1dd47e596370 (patch)
tree55db9a22ca28f0664cc35bc0bb0fcbc64d51545e /community
parentb6a54da9928a0712221a5f09ad9d5d3b5a6e3b46 (diff)
downloadaports-41b8f3500cf4282490948d859f3f1dd47e596370.tar.bz2
aports-41b8f3500cf4282490948d859f3f1dd47e596370.tar.xz
community/xapian-omega: moved from main
Diffstat (limited to 'community')
-rw-r--r--community/xapian-omega/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/community/xapian-omega/APKBUILD b/community/xapian-omega/APKBUILD
new file mode 100644
index 0000000000..51de26e60a
--- /dev/null
+++ b/community/xapian-omega/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=xapian-omega
+pkgver=1.4.0
+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
+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="7d5efb84d676457f408c8139eb007e2c xapian-omega-1.4.0.tar.xz"
+sha256sums="10fc0635b5009bbe726461a62867abf6761bd8cfb812c2ead9646a166a20431f xapian-omega-1.4.0.tar.xz"
+sha512sums="973c456e6d6f5b0818ec6ae1fe8e2ad221ddb5f497a0e51ea552b3e634414f0110311de848276904cff9712dcde7f6468f7152e802a912477e087a17d254d65e xapian-omega-1.4.0.tar.xz"