summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12017-08-17 00:56:19 +0800
committerChocobo12017-08-17 01:06:36 +0800
commit873b8e5b26d7017d093bb30adc14f067ef4eb114 (patch)
tree2d8421bd5b8ce88da9ebf6df97c2655fd3360f52
downloadaur-873b8e5b26d7017d093bb30adc14f067ef4eb114.tar.gz
newpkg: libuv-git 1.13.1.r67.g9834c4f7-1
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD46
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cf1b68b254a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = libuv-git
+ pkgdesc = A multi-platform support library with a focus on asynchronous I/O
+ pkgver = 1.13.1.r67.g9834c4f7
+ pkgrel = 1
+ url = http://libuv.org/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = python-sphinx
+ depends = glibc
+ provides = libuv
+ conflicts = libuv
+ source = git+https://github.com/libuv/libuv.git#branch=master
+ sha256sums = SKIP
+
+pkgname = libuv-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..50e1b2df964
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=libuv-git
+pkgver=1.13.1.r67.g9834c4f7
+pkgrel=1
+pkgdesc="A multi-platform support library with a focus on asynchronous I/O"
+arch=('i686' 'x86_64')
+url="http://libuv.org/"
+license=('MIT')
+depends=('glibc')
+makedepends=('git' 'python-sphinx')
+provides=('libuv')
+conflicts=('libuv')
+source=("git+https://github.com/libuv/libuv.git#branch=master")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "libuv"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "libuv"
+
+ ./autogen.sh
+ ./configure --prefix="/usr"
+ make
+ make -C "docs" man
+}
+
+check() {
+ cd "libuv"
+
+ make check
+}
+
+package() {
+ cd "libuv"
+
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 "docs/build/man/libuv.1" "$pkgdir/usr/share/man/man1/libuv.1"
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/libuv/LICENSE"
+}