aports/community/utfcpp/APKBUILD

37 lines
1,008 B
Text

# Contributor: Leon Marz <main@lmarz.org>
# Maintainer: Leon Marz <main@lmarz.org>
pkgname=utfcpp
pkgver=4.0.6
pkgrel=1
pkgdesc="UTF-8 with C++ in a portable way"
url="https://github.com/nemtrif/utfcpp"
arch="noarch"
license="BSL-1.0"
makedepends="cmake samurai"
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 -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None
cmake --build build
}
check() {
cd build
ctest
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
53c59f2e04fe5d36faf98a238b94f774834a34982d481a8170ee144f7f8c2d4ba249a732d90654922944c1075c578690c327091883398c533d604bf49f4a6ecf utfcpp-4.0.6.tar.gz
4df2fbee0803137544127cefbef4c0edbcd0772de604bcdfbb9f13a802ab36106276842cdbb3f2df4677a87080274dad3380143f7c3a0da9d10eb7ea3a4014a6 0001-fix-cmake-dir.patch
"