[arch-commits] Commit in libutf8proc/repos (3 files)

Alexander Rødseth arodseth at archlinux.org
Sun May 12 10:21:29 UTC 2019


    Date: Sunday, May 12, 2019 @ 10:21:28
  Author: arodseth
Revision: 466117

archrelease: copy trunk to community-staging-x86_64

Added:
  libutf8proc/repos/community-staging-x86_64/
  libutf8proc/repos/community-staging-x86_64/PKGBUILD
    (from rev 466115, libutf8proc/trunk/PKGBUILD)
  libutf8proc/repos/community-staging-x86_64/libutf8proc.pc.in
    (from rev 466115, libutf8proc/trunk/libutf8proc.pc.in)

-------------------+
 PKGBUILD          |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 libutf8proc.pc.in |   10 ++++++++++
 2 files changed, 56 insertions(+)

Copied: libutf8proc/repos/community-staging-x86_64/PKGBUILD (from rev 466115, libutf8proc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-12 10:21:28 UTC (rev 466117)
@@ -0,0 +1,46 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+
+pkgname=libutf8proc
+pkgver=2.4.0
+_sover=2.3.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.$_sover \
+    "$pkgdir/usr/lib/libutf8proc.so.$_sover"
+  ln -s /usr/lib/libutf8proc.so.$_sover "$pkgdir/usr/lib/libutf8proc.so"
+  ldconfig -n "$pkgdir/usr/lib"
+}
+
+# vim: ts=2 sw=2 et:

Copied: libutf8proc/repos/community-staging-x86_64/libutf8proc.pc.in (from rev 466115, libutf8proc/trunk/libutf8proc.pc.in)
===================================================================
--- community-staging-x86_64/libutf8proc.pc.in	                        (rev 0)
+++ community-staging-x86_64/libutf8proc.pc.in	2019-05-12 10:21:28 UTC (rev 466117)
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libutf8proc
+Description: UTF8 processing
+Version: @VERSION@
+Libs: -L${libdir} -lutf8proc
+Cflags: -I${includedir} -DUTF8PROC_EXPORTS



More information about the arch-commits mailing list