summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMykola Dimura2018-11-13 21:00:02 +0100
committerMykola Dimura2018-11-13 21:00:02 +0100
commit3bf1f5b4a509de45bb87e08e1f6204286d89d694 (patch)
tree6bf992537319791acc0e9bb62ec27d8dc20c3cee
downloadaur-3bf1f5b4a509de45bb87e08e1f6204286d89d694.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD31
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..04db0c796c10
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = async++-git
+ pkgdesc = Async++ is a lightweight concurrency framework for C++11.
+ pkgver = r171.2c852e5
+ pkgrel = 1
+ url = https://github.com/Amanieu/asyncplusplus
+ arch = any
+ license = MIT
+ makedepends = cmake
+ makedepends = git
+ options = !strip
+ options = !buildflags
+ options = staticlibs
+ source = async++-git::git+https://github.com/Amanieu/asyncplusplus.git#branch=master
+ sha1sums = SKIP
+
+pkgname = async++-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..8845162fab5c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Mykola Dimura <mykola.dimura@gmail.com>
+pkgname=async++-git
+pkgver=r171.2c852e5
+pkgrel=1
+pkgdesc="Async++ is a lightweight concurrency framework for C++11."
+arch=('any')
+url='https://github.com/Amanieu/asyncplusplus'
+license=('MIT')
+depends=()
+makedepends=('cmake' 'git')
+options=('!strip' '!buildflags' 'staticlibs')
+source=("${pkgname}::git+https://github.com/Amanieu/asyncplusplus.git#branch=master")
+sha1sums=('SKIP')
+
+build() {
+ cd "$srcdir/${pkgname}"
+ mkdir -p build && pushd build
+ cmake ..
+ make
+ popd
+}
+
+package() {
+ cd "$srcdir/${pkgname}/build"
+ make DESTDIR="$pkgdir" install
+}
+
+pkgver() {
+ cd "$srcdir/${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}