summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12017-08-03 17:34:54 +0800
committerChocobo12017-08-03 17:53:33 +0800
commit39c8c2a5da4cfd85c6b41ce2fb966febcd90ad09 (patch)
treec5bda55500b70d1e7e7e5ef7f25bc55cfdfaba68
downloadaur-39c8c2a5da4cfd85c6b41ce2fb966febcd90ad09.tar.gz
newpkg: libunistring-git 0.9.7.r5.gdd8fabb-1
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD42
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a21621689d3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = libunistring-git
+ pkgdesc = A library provides functions for manipulating Unicode strings and for manipulating C strings
+ pkgver = 0.9.7.r5.gdd8fabb
+ pkgrel = 1
+ url = https://www.gnu.org/software/libunistring/
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = gperf
+ depends = glibc
+ provides = libunistring
+ conflicts = libunistring
+ source = git+https://git.savannah.gnu.org/git/libunistring.git
+ sha256sums = SKIP
+
+pkgname = libunistring-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a8729481ba2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=libunistring-git
+pkgver=0.9.7.r5.gdd8fabb
+pkgrel=1
+pkgdesc="A library provides functions for manipulating Unicode strings and for manipulating C strings"
+arch=('i686' 'x86_64')
+url="https://www.gnu.org/software/libunistring/"
+license=('GPL3')
+depends=('glibc')
+makedepends=('git' 'gperf')
+provides=('libunistring')
+conflicts=('libunistring')
+source=("git+https://git.savannah.gnu.org/git/libunistring.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "libunistring"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "libunistring"
+
+ ./autogen.sh
+ ./configure --prefix="/usr"
+ make
+}
+
+check() {
+ cd "libunistring"
+
+ make check
+}
+
+package() {
+ cd "libunistring"
+
+ make DESTDIR="$pkgdir" install
+}