From 585212b76eee05a8e85abe2bf3136213d58c230d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 23 Jan 2019 22:28:42 +0000 Subject: user/utf8proc: new package --- user/utf8proc/APKBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 user/utf8proc/APKBUILD (limited to 'user/utf8proc/APKBUILD') diff --git a/user/utf8proc/APKBUILD b/user/utf8proc/APKBUILD new file mode 100644 index 000000000..8be033ef7 --- /dev/null +++ b/user/utf8proc/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=utf8proc +pkgver=2.2.0 +pkgrel=0 +pkgdesc="C library for processing UTF-8 data" +url=" " +arch="all" +license="MIT AND Unicode-DFS-2016" +depends="" +makedepends="" +subpackages="$pkgname-dev" +source="utf8proc-$pkgver.tar.gz::https://github.com/JuliaStrings/utf8proc/archive/v$pkgver.tar.gz" + +prepare() { + cd "$builddir" + default_prepare + mkdir build +} + +build() { + cd "$builddir"/build + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} \ + .. + make +} + +check() { + cd "$builddir"/build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir"/build + make DESTDIR="$pkgdir" install +} + +sha512sums="ae19287e33bc4807475063963557c4d1d2f7d95577d61882ba8df380883662860eeb868e7391ac1b8111614ca2c1855f631925ade6eaa827d07d28cc4cdbab9c utf8proc-2.2.0.tar.gz" -- cgit v1.2.3-70-g09d2