From 1978b648be9378b50268ecc2535ea76a35d99a7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Tue, 1 Nov 2016 06:25:24 +0000 Subject: community/xapian-core: simplify apkbuild no packaging changes. --- community/xapian-core/APKBUILD | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'community/xapian-core') diff --git a/community/xapian-core/APKBUILD b/community/xapian-core/APKBUILD index 8fa478a827..1f65b95f08 100644 --- a/community/xapian-core/APKBUILD +++ b/community/xapian-core/APKBUILD @@ -15,34 +15,25 @@ subpackages="$pkgname-dev $pkgname-doc libxapian" source="http://oligarchy.co.uk/xapian/$pkgver/$pkgname-$pkgver.tar.xz timeval-t.patch" -_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 -} +builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$_builddir" + cd "$builddir" ./configure --prefix=/usr || return 1 make || return 1 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } libxapian() { - arch="all" - cd "$_builddir" - pkgdesc="Xapian search engine library" - install -d "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/$subpkgname* "$subpkgdir"/usr/lib + pkgdesc="Xapian search engine library" + + cd "$builddir" + install -d "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/$subpkgname* "$subpkgdir"/usr/lib } md5sums="5308261e78337604bd8f845dd6b4aafc xapian-core-1.4.0.tar.xz -- cgit v1.2.3