[arch-commits] Commit in libutf8proc/trunk (PKGBUILD libutf8proc.pc.in)

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


    Date: Wednesday, July 4, 2018 @ 19:14:24
  Author: arodseth
Revision: 352082

upgpkg: libutf8proc 2.1.1-1

Added:
  libutf8proc/trunk/libutf8proc.pc.in
Modified:
  libutf8proc/trunk/PKGBUILD

-------------------+
 PKGBUILD          |   50 ++++++++++++++++++++------------------------------
 libutf8proc.pc.in |   10 ++++++++++
 2 files changed, 30 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-04 19:14:10 UTC (rev 352081)
+++ PKGBUILD	2018-07-04 19:14:24 UTC (rev 352082)
@@ -1,37 +1,28 @@
 # $Id$
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
 
 pkgname=libutf8proc
-pkgver=1.3.1_3
-pkgrel=2
+pkgver=2.1.1
+pkgrel=1
 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')
+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() {
-  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/* .
+  sed "s#@VERSION@#$pkgver#" libutf8proc.pc.in > libutf8proc.pc
 }
 
 build() {
-  cd "$pkgname-${pkgver/_/-}"
-
   mkdir -p build
   cd build
-  cmake .. \
+  cmake ../utf8proc \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DBUILD_SHARED_LIBS=ON \
     -G Ninja
@@ -39,21 +30,20 @@
 }
 
 package() {
-  cd "$pkgname-${pkgver/_/-}"
-
-  # The CMake/install configuration does not work for libutf8proc
+  # 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.1.3.1 \
-    "$pkgdir/usr/lib/libutf8proc.so.1.3.1"
+  install -Dm644 ../build/libutf8proc.so.$pkgver \
+    "$pkgdir/usr/lib/libutf8proc.so.$pkgver"
 
-  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"
+  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"
 }
 
-# getver: git.netsurf-browser.org/libutf8proc.git/
 # vim: ts=2 sw=2 et:

Added: libutf8proc.pc.in
===================================================================
--- libutf8proc.pc.in	                        (rev 0)
+++ libutf8proc.pc.in	2018-07-04 19:14:24 UTC (rev 352082)
@@ -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