summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvy Foster2016-06-09 22:27:39 -0500
committerIvy Foster2016-06-09 22:27:39 -0500
commit9d1787aed70942755dc4a3d690480c64f3e6f1ff (patch)
treec8cc014b50cfbf7413862097aebc1adef93bef5a
downloadaur-9d1787aed70942755dc4a3d690480c64f3e6f1ff.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD44
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..26160748e3c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = libutf8proc-git
+ pkgdesc = C library for processing UTF-8 encoded Unicode strings
+ pkgver = 1.3.1.2.r0.g81ce692
+ pkgrel = 1
+ url = http://git.netsurf-browser.org/libutf8proc.git/
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = netsurf-buildsystem-git
+ provides = libutf8proc
+ conflicts = libutf8proc
+ source = git://git.netsurf-browser.org/libutf8proc.git
+ sha256sums = SKIP
+
+pkgname = libutf8proc-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..89003655e31
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Ivy Foster <ivy.foster@gmail.com>
+
+pkgname='libutf8proc-git'
+pkgver=1.3.1.2.r0.g81ce692
+pkgrel=1
+pkgdesc='C library for processing UTF-8 encoded Unicode strings'
+url='http://git.netsurf-browser.org/libutf8proc.git/'
+license=('MIT')
+
+makedepends=('netsurf-buildsystem-git')
+provides=('libutf8proc')
+conflicts=('libutf8proc')
+
+arch=('x86_64' 'i686')
+source=('git://git.netsurf-browser.org/libutf8proc.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd libutf8proc
+ git describe --long | sed 's:release/::; s:-\([0-9]\+\)-\([0-9]\+\)-:.\1.r\2.:'
+}
+
+prepare() {
+ sed 's:-D_BSD_SOURCE::' -i libutf8proc/Makefile
+}
+
+build() {
+ cd libutf8proc
+ make PREFIX=/usr INCLUDEDIR=include \
+ LIBDIR=lib COMPONENT_TYPE=lib-shared
+}
+
+check() {
+ make -C libutf8proc PREFIX=/usr INCLUDEDIR=include \
+ LIBDIR=lib COMPONENT_TYPE=lib-shared test
+}
+
+package() {
+ cd libutf8proc
+ make DESTDIR="$pkgdir" PREFIX=/usr INCLUDEDIR=include \
+ LIBDIR=lib COMPONENT_TYPE=lib-shared install
+ install -Dm644 LICENSE.md \
+ "$pkgdir/usr/share/licenses/netsurf/libutf8proc"
+}