mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-13 00:49:03 +08:00
56 lines
1.5 KiB
Bash
56 lines
1.5 KiB
Bash
|
# Contributions from Arch:
|
||
|
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
|
||
|
|
||
|
pkgname=libutf8proc
|
||
|
pkgver=1.3.1_3
|
||
|
pkgrel=1
|
||
|
pkgdesc='C library for processing UTF-8 encoded Unicode strings'
|
||
|
arch=('x86_64')
|
||
|
url='http://git.netsurf-browser.org/libutf8proc.git/'
|
||
|
license=('MIT' 'custom')
|
||
|
makedepends=('cmake' 'git' 'ninja')
|
||
|
source=("git://git.netsurf-browser.org/libutf8proc.git#tag=release/${pkgver/_/-}"
|
||
|
'libutf8proc.pc')
|
||
|
sha256sums=('SKIP'
|
||
|
'345ea6782c361f5d38808c13e1e6ce6c2bef69a22a97d115b8ce950d74de1ed1')
|
||
|
|
||
|
prepare() {
|
||
|
cd "$pkgname"
|
||
|
|
||
|
find . -iwholename '*cmake*' \
|
||
|
-not -name CMakeLists.txt \
|
||
|
-not -name utils.cmake \
|
||
|
-delete
|
||
|
rm -fv Makefile
|
||
|
cp -r src/* include/$pkgname/* .
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd "$pkgname"
|
||
|
|
||
|
mkdir -p build
|
||
|
cd build
|
||
|
cmake .. \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||
|
-DBUILD_SHARED_LIBS=ON \
|
||
|
-G Ninja
|
||
|
ninja
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$pkgname"
|
||
|
|
||
|
# The CMake/install configuration does not work for libutf8proc
|
||
|
# DESTDIR="$pkgdir" ninja -C "$pkgname-$pkgver/build" install
|
||
|
|
||
|
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.1.3.1 \
|
||
|
"$pkgdir/usr/lib/libutf8proc.so.1.3.1"
|
||
|
|
||
|
ln -s /usr/lib/libutf8proc.so.1.3.1 "$pkgdir/usr/lib/libutf8proc.so.1"
|
||
|
ln -s /usr/lib/libutf8proc.so.1.3.1 "$pkgdir/usr/lib/libutf8proc.so"
|
||
|
}
|