blob: 24b9dd8ee039245db531deb51af375412b02f33c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Sebastian Lau <lauseb644 _at_ gmail _dot_ com>
pkgname="liblogcpp"
pkgver=1.9.0
pkgrel=4
pkgdesc="A intuitive and highly customizable LGPL library for logging with C++."
arch=('x86_64' 'i686' 'armv6h' 'armv7h')
url="https://github.com/nullptrT/liblogcpp.git"
license=('LGPL3')
conflicts=('liblogcpp-qt')
provides=('liblogcpp')
depends=()
makedepends=('cmake' 'git')
source=("git+https://github.com/nullptrT/liblogcpp.git#tag=$pkgver")
sha512sums=('SKIP')
prepare() {
[[ -e "$srcdir/build" ]] && rm -r "$srcdir/build"
mkdir "$srcdir/build"
}
build() {
cd "$srcdir/build"
cmake -DCMAKE_INSTALL_PREFIX:PATH="/usr" \
-DLOGCPP_SHARED=ON \
-DLOGCPP_INSTALL_LIBS=ON \
"../liblogcpp"
make
}
package() {
cd "$srcdir/build"
make DESTDIR="${pkgdir}" install
}
|