mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-01 08:51:47 +01:00
37 lines
878 B
Plaintext
37 lines
878 B
Plaintext
# Contributor: Leon Marz <main@lmarz.org>
|
|
# Maintainer: Leon Marz <main@lmarz.org>
|
|
pkgname=utfcpp
|
|
pkgver=3.2.3
|
|
pkgrel=0
|
|
pkgdesc="UTF-8 with C++ in a portable way"
|
|
url="https://github.com/nemtrif/utfcpp"
|
|
arch="noarch"
|
|
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
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
CTEST_OUTPUT_ON_FAILURE=1 ctest
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
760977df613abfb34fb7864cbbe90e8f2cf1f42b8502427a5e9c2a756ce87655120b7490ebdaa6c926a2cb56caef9ead0e0e10fb7cb732cf99a5b43c0cca411b utfcpp-3.2.3.tar.gz
|
|
"
|