blob: 13806377ee2626ffe2fffbc1d8a82b6b1df0cbfd (
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
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer:
pkgname=aixlog
pkgver=1.2.0
pkgrel=0
pkgdesc="Header-only C++ logging library"
url="https://github.com/badaix/aixlog"
arch="noarch"
license="MIT"
depends=""
makedepends="cmake bash"
install=""
options="!check" # not test
subpackages=""
source="aixlog-$pkgver.tar.gz::https://github.com/badaix/aixlog/archive/v$pkgver.tar.gz"
builddir="$srcdir/aixlog-$pkgver"
build() {
cd "$builddir"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
${CMAKE_CROSSOPTS}
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="57f8f98377bf2ae8405244bb20eec0a408419da9545f15ef4357f8b7d9533c15fa65aa0f1a684b079319db2ad488956ff5251c24329a86afcf1661ca2dd3b5b9 aixlog-1.2.0.tar.gz"
|