Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lopsided98
Last active June 1, 2016 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lopsided98/225f9bfcec2f93ea2e72e07531ce3176 to your computer and use it in GitHub Desktop.
Save lopsided98/225f9bfcec2f93ea2e72e07531ce3176 to your computer and use it in GitHub Desktop.
PKGBUILD for log4cxx 0.10.0 that works with GCC 6
pkgname=log4cxx
pkgver=0.10.0
pkgrel=3
pkgdesc="A C++ port of Log4j"
url="http://logging.apache.org/log4cxx"
license=("Apache")
depends=('apr-util' 'libxml2')
arch=('i686' 'x86_64')
makedepends=('autoconf' 'automake' 'libtool' 'patch' 'zip' 'gzip' 'sed')
source=(http://archive.apache.org/dist/logging/$pkgname/$pkgver/apache-$pkgname-$pkgver.tar.gz
log4cxx-0.10.0-missing_includes.patch)
md5sums=('b30ffb8da3665178e68940ff7a61084c'
'dfa17719a57b19f12cbef94419a2aac8')
build() {
cd "$srcdir/apache-$pkgname-$pkgver"
patch -p1 < $startdir/log4cxx-0.10.0-missing_includes.patch
./configure --prefix=/usr --disable-static CFLAGS="$CFLAGS -Wno-narrowing" CXXFLAGS="$CXXFLAGS -Wno-narrowing"
make
}
package() {
cd "$srcdir/apache-$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment