Skip to content

Instantly share code, notes, and snippets.

@ManiaciaChao
Created May 27, 2022 09:20
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 ManiaciaChao/86a39702ca94405eb3f21669887c98f9 to your computer and use it in GitHub Desktop.
Save ManiaciaChao/86a39702ca94405eb3f21669887c98f9 to your computer and use it in GitHub Desktop.
PKGBUILD for liblog4cxx 12
# Maintainer: Akkenoth <akkenoth+aur [at] google [dot] com>
pkgname=log4cxx-git
_pkgname=log4cxx
pkgver=20181214
pkgrel=1
pkgdesc="A C++ port of Log4j, development version (GIT)"
url="http://logging.apache.org/log4cxx"
license=("Apache")
groups=()
depends=('apr-util' 'libxml2')
arch=('i686' 'x86_64')
makedepends=('git' 'zip')
provides=('log4cxx')
conflicts=('log4cxx')
options=()
install=
source=("${_pkgname}::git+https://gitbox.apache.org/repos/asf/logging-log4cxx.git#commit=65a005273ab1e5133847a4e167bd5b0a69953027")
md5sums=(SKIP)
build() {
cd "${_pkgname}"
cmake -B build -S . \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
cmake --build build
}
package() {
cd "${_pkgname}"
DESTDIR="$pkgdir" cmake --install build
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment