mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
testing/aixlog: new aport
This commit is contained in:
parent
e676d445d4
commit
94b66949fd
36
testing/aixlog/APKBUILD
Normal file
36
testing/aixlog/APKBUILD
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
||||||
|
# Maintainer:
|
||||||
|
pkgname=aixlog
|
||||||
|
pkgver=1.1.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="4fb4a7e4ab0a1a7ac005367b4935f34f8f5599c8f49db8e7696fd2759efdbd02606539e7b904c866d08fcd7ccb3666fb55c54ae5cb8ce890cf4297ca5993845e aixlog-1.1.0.tar.gz"
|
Loading…
Reference in New Issue
Block a user