From e95ea80e58acecd0f6d69bcba9fa9a90cf3d8ebb Mon Sep 17 00:00:00 2001 From: Leon Marz Date: Fri, 10 Jul 2020 15:06:44 +0200 Subject: [PATCH] testing/utfcpp: new aport https://github.com/nemtrif/utfcpp UTF-8 with C++ in a portable way --- testing/utfcpp/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 testing/utfcpp/APKBUILD diff --git a/testing/utfcpp/APKBUILD b/testing/utfcpp/APKBUILD new file mode 100644 index 00000000000..d0ab3fd7137 --- /dev/null +++ b/testing/utfcpp/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Leon Marz +# Maintainer: Leon Marz +pkgname=utfcpp +pkgver=3.1.1 +pkgrel=0 +pkgdesc="UTF-8 with C++ in a portable way" +url="https://github.com/nemtrif/utfcpp" +arch="all" +license="BSL-1.0" +makedepends="cmake" +source="$pkgname-$pkgver.tar.gz::https://github.com/nemtrif/utfcpp/archive/v$pkgver.tar.gz" +options="!check" # problems with gtest + +build() { + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=None \ + -DUTF8_TESTS=OFF \ + -DUTF8_SAMPLES=OFF \ + . + make -C build +} + +check() { + CTEST_OUTPUT_ON_FAILURE=1 make -C build check +} + +package() { + make -C build DESTDIR="$pkgdir" install +} + +sha512sums="720e2eba5c04f0bc4903a287138149a9cd432bc68bb163fe36b2e0d26d8bf616b4665f389b4a9c97af6ae7869e78973d97db976a4745512a241eebf774608997 utfcpp-3.1.1.tar.gz"