diff options
Diffstat (limited to 'testing/xapian-core')
-rw-r--r-- | testing/xapian-core/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/xapian-core/APKBUILD b/testing/xapian-core/APKBUILD new file mode 100644 index 0000000000..fc9dc4c495 --- /dev/null +++ b/testing/xapian-core/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: +pkgname=xapian-core +pkgver=1.2.12 +pkgrel=0 +pkgdesc="Open source search engine library" +url="http://www.xapian.org/" +arch="all" +license="GPL" +depends="" +depends_dev="zlib-dev libgcc e2fsprogs-dev libtool" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://oligarchy.co.uk/xapian/$pkgver/$pkgname-$pkgver.tar.gz" +_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 +} + +md5sums="faf33a3945edbe4c848627750856cbeb xapian-core-1.2.12.tar.gz" |