summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgsc2016-10-21 11:49:27 +0800
committergsc2016-10-21 11:49:27 +0800
commit7c6bb431aa6569ccfe33e4c73c3e4a665c5d94bd (patch)
tree13ba52ef8b1431ec220beefca52f5cd9f5b1ee8d
downloadaur-7c6bb431aa6569ccfe33e4c73c3e4a665c5d94bd.tar.gz
add
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD33
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..529f586aab1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Fri Oct 21 03:49:16 UTC 2016
+pkgbase = libgo
+ pkgdesc = Go-style concurrency in C++11
+ pkgver = 2.6
+ pkgrel = 1
+ url = https://github.com/yyzybb537/libgo
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = cmake
+ depends = boost
+ source = libgo-2.6.tar.gz::https://github.com/yyzybb537/libgo/archive/v2.6.tar.gz
+ sha512sums = 84610109a088ec100045292183d7eb7cc0ea6de16e583b9a4692d20bad0b63ab0c6206bc3f718d1afb13e4b70b139b279faa1b22c6e55610235580096c536820
+
+pkgname = libgo
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d862bb31e4b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Michael Yang <ohmyarchlinux@gmail.com>
+
+pkgname=libgo
+pkgver=2.6
+pkgrel=1
+pkgdesc="Go-style concurrency in C++11"
+arch=('i686' 'x86_64')
+url="https://github.com/yyzybb537/libgo"
+license=('MIT')
+depends=('boost')
+makedepends=('cmake')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/yyzybb537/libgo/archive/v${pkgver}.tar.gz")
+sha512sums=('84610109a088ec100045292183d7eb7cc0ea6de16e583b9a4692d20bad0b63ab0c6206bc3f718d1afb13e4b70b139b279faa1b22c6e55610235580096c536820')
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+ cmake ../${pkgname}-${pkgver} \
+ -DENABLE_BOOST_CONTEXT=ON \
+ -DENABLE_BOOST_COROUTINE=ON \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ make -C build DESTDIR="${pkgdir}" install
+ cd ${pkgname}-${pkgver}
+ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}