[arch-commits] Commit in libutf8proc/repos/community-x86_64 (4 files)

Alexander Rødseth arodseth at archlinux.org
Wed Jul 4 19:16:14 UTC 2018


    Date: Wednesday, July 4, 2018 @ 19:16:13
  Author: arodseth
Revision: 352088

archrelease: copy trunk to community-x86_64

Added:
  libutf8proc/repos/community-x86_64/PKGBUILD
    (from rev 352086, libutf8proc/trunk/PKGBUILD)
  libutf8proc/repos/community-x86_64/libutf8proc.pc.in
    (from rev 352087, libutf8proc/trunk/libutf8proc.pc.in)
Deleted:
  libutf8proc/repos/community-x86_64/PKGBUILD
  libutf8proc/repos/community-x86_64/libutf8proc.pc

-------------------+
 PKGBUILD          |  108 +++++++++++++++++++++++-----------------------------
 libutf8proc.pc    |   10 ----
 libutf8proc.pc.in |   10 ++++
 3 files changed, 59 insertions(+), 69 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-04 19:15:47 UTC (rev 352087)
+++ PKGBUILD	2018-07-04 19:16:13 UTC (rev 352088)
@@ -1,59 +0,0 @@
-# $Id$
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
-
-pkgname=libutf8proc
-pkgver=1.3.1_3
-pkgrel=2
-pkgdesc='C library for processing UTF-8 encoded Unicode strings'
-arch=('x86_64')
-url='https://git.netsurf-browser.org/libutf8proc.git/'
-license=('MIT' 'custom')
-makedepends=('cmake' 'git' 'ninja' 'setconf')
-source=("http://download.netsurf-browser.org/libs/releases/libutf8proc-${pkgver/_/-}-src.tar.gz"
-        'libutf8proc.pc')
-sha256sums=('1223c2dd9c5cd077564feb30a6ad8b1c0e55ef5dfe7c275d3b9fe8274f207c70'
-            '345ea6782c361f5d38808c13e1e6ce6c2bef69a22a97d115b8ce950d74de1ed1')
-
-prepare() {
-  setconf libutf8proc.pc Version "${pkgver%%_*}"
-
-  cd "$pkgname-${pkgver/_/-}"
-  find . -iwholename '*cmake*' \
-    -not -name CMakeLists.txt \
-    -not -name utils.cmake \
-    -delete
-  rm -fv Makefile
-  cp -r src/* include/$pkgname/* .
-}
-
-build() {
-  cd "$pkgname-${pkgver/_/-}"
-
-  mkdir -p build
-  cd build
-  cmake .. \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DBUILD_SHARED_LIBS=ON \
-    -G Ninja
-  ninja
-}
-
-package() {
-  cd "$pkgname-${pkgver/_/-}"
-
-  # The CMake/install configuration does not work for libutf8proc
-  # DESTDIR="$pkgdir" ninja -C "$pkgname-$pkgver/build" install
-
-  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.1.3.1 \
-    "$pkgdir/usr/lib/libutf8proc.so.1.3.1"
-
-  ln -s /usr/lib/libutf8proc.so.1.3.1 "$pkgdir/usr/lib/libutf8proc.so.1"
-  ln -s /usr/lib/libutf8proc.so.1.3.1 "$pkgdir/usr/lib/libutf8proc.so"
-}
-
-# getver: git.netsurf-browser.org/libutf8proc.git/
-# vim: ts=2 sw=2 et:

Copied: libutf8proc/repos/community-x86_64/PKGBUILD (from rev 352086, libutf8proc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-07-04 19:16:13 UTC (rev 352088)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+
+pkgname=libutf8proc
+pkgver=2.1.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')
+replaces=('libutf8proc')
+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.$pkgver \
+    "$pkgdir/usr/lib/libutf8proc.so.$pkgver"
+
+  ln -s /usr/lib/libutf8proc.so.$pkgver "$pkgdir/usr/lib/libutf8proc.so.1"
+  ln -s /usr/lib/libutf8proc.so.$pkgver "$pkgdir/usr/lib/libutf8proc.so"
+}
+
+# vim: ts=2 sw=2 et:

Deleted: libutf8proc.pc
===================================================================
--- libutf8proc.pc	2018-07-04 19:15:47 UTC (rev 352087)
+++ libutf8proc.pc	2018-07-04 19:16:13 UTC (rev 352088)
@@ -1,10 +0,0 @@
-prefix=/usr
-exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include
-
-Name: libutf8proc
-Description: UTF8 processing
-Version: 1.3.1
-Libs: -L${libdir} -lutf8proc
-Cflags: -I${includedir} -DUTF8PROC_EXPORTS

Copied: libutf8proc/repos/community-x86_64/libutf8proc.pc.in (from rev 352087, libutf8proc/trunk/libutf8proc.pc.in)
===================================================================
--- libutf8proc.pc.in	                        (rev 0)
+++ libutf8proc.pc.in	2018-07-04 19:16:13 UTC (rev 352088)
@@ -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