Date: Wednesday, December 2, 2020 @ 14:20:35
  Author: arodseth
Revision: 769159

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: libutf8proc/repos/community-staging-x86_64/PKGBUILD (from rev 769158, 
libutf8proc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-12-02 14:20:35 UTC (rev 769159)
@@ -0,0 +1,44 @@
+# Maintainer: Alexander F. Rødseth <xypr...@archlinux.org>
+
+pkgname=libutf8proc
+pkgver=2.6.0
+_sover=2.4.0
+pkgrel=1
+pkgdesc='C library for processing UTF-8 encoded Unicode strings'
+arch=(x86_64)
+url='https://github.com/JuliaStrings/utf8proc'
+license=(custom)
+makedepends=(cmake git ninja)
+source=("git+$url#commit=df2997a300792b8efd6a1ea9281c14dfe986d6f9" # tag: 
v2.6.0
+        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"
+}

Copied: libutf8proc/repos/community-staging-x86_64/libutf8proc.pc.in (from rev 
769158, libutf8proc/trunk/libutf8proc.pc.in)
===================================================================
--- community-staging-x86_64/libutf8proc.pc.in                          (rev 0)
+++ community-staging-x86_64/libutf8proc.pc.in  2020-12-02 14:20:35 UTC (rev 
769159)
@@ -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

Reply via email to