[arch-commits] Commit in libutf8proc/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Wed Feb 3 21:35:47 UTC 2016
Date: Wednesday, February 3, 2016 @ 22:35:47
Author: arodseth
Revision: 160128
upgpkg: libutf8proc 1.3.1-1
Modified:
libutf8proc/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-02-03 21:29:52 UTC (rev 160127)
+++ PKGBUILD 2016-02-03 21:35:47 UTC (rev 160128)
@@ -3,33 +3,40 @@
pkgname=libutf8proc
pkgver=1.3.1
-pkgrel=2
+pkgrel=1
pkgdesc='C library for processing UTF-8 encoded Unicode strings'
arch=('x86_64' 'i686')
-url='http://julialang.org/utf8proc/'
+url='http://git.netsurf-browser.org/libutf8proc.git/'
license=('MIT' 'custom')
replaces=('utf8proc')
depends=('glibc')
-source=("utf8proc.tar.gz::https://github.com/JuliaLang/utf8proc/archive/v$pkgver.tar.gz"
+makedepends=('git' 'ninja' 'cmake')
+source=("git://git.netsurf-browser.org/libutf8proc.git#tag=v$pkgver"
'libutf8proc.pc')
-sha256sums=('83b60fe21fd8a017b8ad469515873893c8e911a5bef336a427594d398b5688cc'
+sha256sums=('SKIP'
'6c6c05ff6c91777987d76f935c24c7a3f67eba12e420a437f03ee1545f404d31')
build() {
- make -C "utf8proc-$pkgver"
+ cd "$pkgname"
+ mkdir -p build
+ cd build
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=ON \
+ -G Ninja
+ ninja
}
-check() {
- make -C "utf8proc-$pkgver" check
-}
-
package() {
- cd "utf8proc-$pkgver"
+ cd "$pkgname"
- make DESTDIR="$pkgdir" prefix=/usr install
+ install -Dm644 utf8proc.h "$pkgdir/usr/include/utf8proc.h"
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
install -Dm644 ../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: julialang.org/utf8proc/releases/
+# getver: git.netsurf-browser.org/libutf8proc.git/
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list