mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 19:39:03 +08:00
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
# Contributions from Arch:
|
|
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
|
|
|
|
pkgname=libutf8proc
|
|
pkgver=2.1.1
|
|
pkgrel=1
|
|
pkgdesc='C library for processing UTF-8 encoded Unicode strings'
|
|
arch=('x86_64')
|
|
url='https://julialang.org/utf8proc/'
|
|
license=('custom')
|
|
makedepends=('cmake' 'git' 'ninja')
|
|
source=("git+https://github.com/JuliaStrings/utf8proc#tag=v$pkgver"
|
|
'libutf8proc.pc.in')
|
|
sha256sums=('SKIP'
|
|
'0fc49af11c4e77675d307bcee442c3582db805f7c17c32284d0620131b1007d1')
|
|
|
|
prepare() {
|
|
sed "s#@VERSION@#$pkgver#" libutf8proc.pc.in > libutf8proc.pc
|
|
}
|
|
|
|
build() {
|
|
mkdir -p build
|
|
cd build
|
|
cmake ../utf8proc \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-G Ninja
|
|
ninja
|
|
}
|
|
|
|
package() {
|
|
# The install command does not work for libutf8proc
|
|
# DESTDIR="$pkgdir" ninja -C "$pkgname-$pkgver/build" install
|
|
|
|
cd utf8proc
|
|
|
|
install -Dm644 utf8proc.h "$pkgdir/usr/include/utf8proc.h"
|
|
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
|
|
install -Dm644 "$srcdir/libutf8proc.pc" \
|
|
"$pkgdir/usr/lib/pkgconfig/libutf8proc.pc"
|
|
install -Dm644 ../build/libutf8proc.so.$pkgver \
|
|
"$pkgdir/usr/lib/libutf8proc.so.$pkgver"
|
|
|
|
ln -s /usr/lib/libutf8proc.so.$pkgver "$pkgdir/usr/lib/libutf8proc.so"
|
|
ldconfig -n "$pkgdir/usr/lib"
|
|
}
|