diff options
author | Bart Ribbers <bribbers@disroot.org> | 2018-07-10 17:36:35 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-10-14 13:17:54 +0200 |
commit | 709adfd19d891f58d5b5839da2cca6cffdb9cec5 (patch) | |
tree | 3f2ec6553d47016951d5d8adea1b92d3f7afb259 /community/aixlog | |
parent | 752faae0fe607430d4fd4940d397c90824112852 (diff) | |
download | aports-709adfd19d891f58d5b5839da2cca6cffdb9cec5.tar.bz2 aports-709adfd19d891f58d5b5839da2cca6cffdb9cec5.tar.xz |
testing/aixlog: move to community
Diffstat (limited to 'community/aixlog')
-rw-r--r-- | community/aixlog/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/community/aixlog/APKBUILD b/community/aixlog/APKBUILD new file mode 100644 index 0000000000..eca8afae2d --- /dev/null +++ b/community/aixlog/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +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" |