summaryrefslogtreecommitdiff
path: root/pcr/rxcpp/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/rxcpp/PKGBUILD')
-rw-r--r--pcr/rxcpp/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/pcr/rxcpp/PKGBUILD b/pcr/rxcpp/PKGBUILD
new file mode 100644
index 000000000..3409dba25
--- /dev/null
+++ b/pcr/rxcpp/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer (AUR): Peter Majchrak <petoknm@gmail.com>
+# repolint: reason=asdeps
+
+pkgname=rxcpp
+pkgver=4.1.0
+pkgrel=1
+pkgdesc="Reactive Extensions for C++"
+arch=('i686' 'x86_64')
+url="https://github.com/ReactiveX/RxCpp"
+license=('Apache')
+makedepends=('gcc' 'make' 'cmake' 'catch2')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ReactiveX/RxCpp/archive/4.1.0.tar.gz")
+sha256sums=('d3bb49c7ac6b5c43235df710510fce87d827bb88a1b78242017f190d2acbbdea')
+
+build() {
+ cd "RxCpp-$pkgver/projects/CMake"
+
+ export CXXFLAGS="$CXXFLAGS -I/usr/include/catch2/"
+ cmake .
+ make -j1
+}
+
+check() {
+ cd "RxCpp-$pkgver/projects/CMake/test"
+
+ ctest
+}
+
+package() {
+ cd "RxCpp-$pkgver/projects/CMake"
+
+ make DESTDIR="$pkgdir/" install
+}