blob: 082d35be1c95bad71b1a3ceb2fd89684090f7cb4 (
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
|
# Maintainer: Federico Di Pierro <nierro92@gmail.com>
# Maintainer: Nathan Owens <ndowens @ artixlinux.org
pkgname=libyder
_gitname=yder
pkgver=1.4.10
pkgrel=1
pkgdesc="Logging library for C applications"
arch=(x86_64)
url="https://github.com/babelouest/${_gitname}"
license=(GPL)
conflicts=('liborcania')
provides=('orcania.h' 'liborcania.so')
makedepends=('git' 'cmake')
source=("git+https://github.com/babelouest/yder.git#tag=v${pkgver}")
sha256sums=("SKIP")
prepare() {
cd "${srcdir}/${_gitname}"
mkdir -p build
}
build() {
cd "${srcdir}/${_gitname}"
cmake -B build \
-G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE="Release" \
-DWITH_JOURNALD=OFF
make -C build
}
package() {
cd "${srcdir}/${_gitname}"
make -C build DESTDIR="$pkgdir" install
}
|