mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-07 09:41:39 +01:00
38 lines
1017 B
Plaintext
38 lines
1017 B
Plaintext
# Contributor: Leon Marz <main@lmarz.org>
|
|
# Maintainer: Leon Marz <main@lmarz.org>
|
|
pkgname=utfcpp
|
|
pkgver=4.0.2
|
|
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
|
|
0001-fix-cmake-dir.patch
|
|
"
|
|
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
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
CTEST_OUTPUT_ON_FAILURE=1 ctest
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
e02c10c7e9c8c6ee8b8d45bb7521997106be1bf6778d964d4c66a4f025b6ce46df43be12dc74b03639be9f99db8aa4d8c22a65880a057aeb0e76a90bb87c760c utfcpp-4.0.2.tar.gz
|
|
0a2dd3b83f8b8b6fd64411ce3a08fb8c9864d5a2bb8dfe7555a31e7fd4fc0d8bd8b59e4f188e956e13a7aaa19734a780f0f54d962be0466275b50342d2af160d 0001-fix-cmake-dir.patch
|
|
"
|