diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-23 22:28:42 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-23 22:28:42 +0000 |
commit | 585212b76eee05a8e85abe2bf3136213d58c230d (patch) | |
tree | 2a2e9ef838f0c1960326680ec0b72d75cf178f09 /user | |
parent | 4e8537580db31f2a98271e13801eb68042512711 (diff) | |
download | packages-585212b76eee05a8e85abe2bf3136213d58c230d.tar.gz packages-585212b76eee05a8e85abe2bf3136213d58c230d.tar.bz2 packages-585212b76eee05a8e85abe2bf3136213d58c230d.tar.xz packages-585212b76eee05a8e85abe2bf3136213d58c230d.zip |
user/utf8proc: new package
Diffstat (limited to 'user')
-rw-r--r-- | user/utf8proc/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
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 <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +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" |