aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-01-09 12:38:36 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-01-09 13:05:50 +0000
commitf917fd9a469afde47485610e335d529e78098fdc (patch)
treee346004a488465f2450df28df5a52c9cdb740544 /main
parent8f5c2093c6f936572ab0b5aeee7aac7ffcfc1988 (diff)
downloadaports-f917fd9a469afde47485610e335d529e78098fdc.tar.bz2
aports-f917fd9a469afde47485610e335d529e78098fdc.tar.xz
testing/xapian-core: moved to main
Diffstat (limited to 'main')
-rw-r--r--main/xapian-core/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/main/xapian-core/APKBUILD b/main/xapian-core/APKBUILD
new file mode 100644
index 0000000000..d0d967fe48
--- /dev/null
+++ b/main/xapian-core/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=xapian-core
+pkgver=1.2.19
+pkgrel=5
+pkgdesc="Open source search engine library"
+url="http://www.xapian.org/"
+arch="all"
+license="GPL2+"
+depends=""
+depends_dev="zlib-dev util-linux-dev"
+makedepends="$depends_dev libtool"
+install=""
+subpackages="$pkgname-dev $pkgname-doc libxapian"
+source="http://oligarchy.co.uk/xapian/$pkgver/$pkgname-$pkgver.tar.xz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+libxapian() {
+ arch="all"
+ cd "$_builddir"
+ pkgdesc="Xapian search engine library"
+ install -d "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/$subpkgname* "$subpkgdir"/usr/lib
+}
+
+md5sums="54ec8333757eb94dbde76d31d185af91 xapian-core-1.2.19.tar.xz"
+sha256sums="4a78260388ff1b042f0ab5d18afdd524a530ae609690d0339990ddc147a54785 xapian-core-1.2.19.tar.xz"
+sha512sums="5cd29b8c278b4fa652f947cd6689945bbe239c95425344d0fedb445bf1534198333844d91e6e59cf870043066f4dc511cd0268071916002e96bd38b59aa91c1b xapian-core-1.2.19.tar.xz"