Skip to content

Instantly share code, notes, and snippets.

@bcachet bcachet/PKGBUILD
Last active Dec 18, 2017

Embed
What would you like to do?
libzookeeper PKGBUILD patch
# Maintainer: <aaron.l.france@gmail.com>
pkgname=libzookeeper
pkgver=3.4.7
pkgrel=1
pkgdesc="libzookeeper"
arch=('i686' 'x86_64')
url="https://github.com/apache/zookeeper"
license=('Apache')
makedepends=(apache-ant autoconf cppunit)
checkdepends=()
optdepends=()
provides=(libzookeper)
source=(https://github.com/apache/zookeeper/archive/release-$pkgver.tar.gz Use-PKG_CHECK_insteadOf-AM_PATH_CPPUNIT.patch)
md5sums=('3f4ce8da1c7e27d321177356a76c8515'
'9400abfe560ca14456c34962a19b139d')
build() {
cd "$srcdir/zookeeper-release-$pkgver"
ant compile_jute
cd src/c
autoreconf -if
./configure --prefix=/usr
}
package() {
cd "$srcdir/zookeeper-release-$pkgver/src/c/"
make DESTDIR="$pkgdir/" install
}
prepare() {
cd "$srcdir/zookeeper-release-$pkgver/"
patch -p1 -i ../Use-PKG_CHECK_insteadOf-AM_PATH_CPPUNIT.patch
}
# vim:set ts=2 sw=2 et:
diff -ura --color zookeeper-release-3.4.7/src/c/configure.ac new/src/c/configure.ac
--- zookeeper-release-3.4.7/src/c/configure.ac 2015-11-21 20:07:24.000000000 +0100
+++ new/src/c/configure.ac 2017-12-18 13:38:33.429573797 +0100
@@ -34,7 +34,7 @@
CPPUNIT_INCLUDE=
CPPUNIT_LIBS=
else
- AM_PATH_CPPUNIT(1.10.2)
+ PKG_CHECK_MODULES(CPPUNIT, cppunit >= 1.10.2)
fi
if test "$CALLER" = "ANT" ; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.