mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 12:36:40 +02:00
54 lines
1.3 KiB
Text
54 lines
1.3 KiB
Text
# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
pkgname=libunicode
|
|
pkgver=0.6.0
|
|
pkgrel=1
|
|
pkgdesc="Modern C++17 Unicode library"
|
|
url="https://contour-terminal.org"
|
|
arch="x86_64 aarch64" # 'intrinsics' has not been declared
|
|
license="Apache-2.0"
|
|
makedepends="
|
|
catch2-3
|
|
cmake
|
|
fmt-dev
|
|
python3
|
|
samurai
|
|
unicode-character-database
|
|
"
|
|
subpackages="
|
|
$pkgname-dev
|
|
$pkgname-doc
|
|
$pkgname-tools
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/contour-terminal/libunicode/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DLIBUNICODE_UCD_DIR=/usr/share/unicode \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DLIBUNICODE_TESTING=ON
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir build -C Release
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
|
|
}
|
|
|
|
tools() {
|
|
pkgdesc="$pkgdesc - query tools"
|
|
|
|
mkdir -p "$subpkgdir"/usr/bin
|
|
mv "$pkgdir"/usr/bin/unicode-query -t "$subpkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
49786d5aa1b69e9d4cfcb3b2723a2a12d0774166ae18f718f9212e1d833b28322b0510992c54ef9bff9a887600eaa32d8d67831021028d21a6cd80bb576c2aa6 libunicode-0.6.0.tar.gz
|
|
"
|