Date: Monday, October 31, 2022 @ 23:24:03
  Author: arodseth
Revision: 1340016

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: libutf8proc/repos/community-staging-x86_64/PKGBUILD (from rev 1340015, 
libutf8proc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-10-31 23:24:03 UTC (rev 1340016)
@@ -0,0 +1,45 @@
+# Maintainer: Alexander F. Rødseth <[email protected]>
+
+pkgname=libutf8proc
+pkgver=2.8.0
+_sover=2.6.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=1cb28a66ca79a0845e99433fd1056257456cef8b" # tag: 
v2.8.0
+        $pkgname.pc.in)
+b2sums=('SKIP'
+        
'27cfd2086b63b0d9b08720d966d760e4237734a85a293eab81065f49857aa11ed57682a4bd26e4081701d34e61c156170b65bbf38f19387539f5472d0d94db23')
+
+prepare() {
+  sed "s#@VERSION@#$pkgver#" libutf8proc.pc.in > libutf8proc.pc
+}
+
+build() {
+  cmake \
+    -B build \
+    -D CMAKE_BUILD_TYPE=Release \
+    -D CMAKE_INSTALL_LIBDIR=lib \
+    -D CMAKE_INSTALL_PREFIX=/usr \
+    -D BUILD_SHARED_LIBS=ON \
+    -G Ninja \
+    -S utf8proc
+  ninja -C build
+}
+
+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/$pkgname.pc" "$pkgdir/usr/lib/pkgconfig/$pkgname.pc"
+  install -Dm644 ../build/$pkgname.so.$_sover \
+    "$pkgdir/usr/lib/$pkgname.so.$_sover"
+  ln -s /usr/lib/$pkgname.so.$_sover "$pkgdir/usr/lib/$pkgname.so"
+  ldconfig -n "$pkgdir/usr/lib"
+}

Copied: libutf8proc/repos/community-staging-x86_64/libutf8proc.pc.in (from rev 
1340015, libutf8proc/trunk/libutf8proc.pc.in)
===================================================================
--- community-staging-x86_64/libutf8proc.pc.in                          (rev 0)
+++ community-staging-x86_64/libutf8proc.pc.in  2022-10-31 23:24:03 UTC (rev 
1340016)
@@ -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