summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormvidaldp2020-10-13 20:15:09 +0200
committermvidaldp2020-10-13 20:15:09 +0200
commitab478a2c8ec3b351e8cfb59148421418dfda47cb (patch)
treef90d917d3ac028fca9aea679417533b2f332850a
downloadaur-ab478a2c8ec3b351e8cfb59148421418dfda47cb.tar.gz
Add PKGBUILD and .SRCINFO
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD37
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..20c5924893a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = liblsl
+ pkgdesc = C++ lsl library for multi-modal time-synched data transmission over the local network (stable release)
+ pkgver = 1.13.1
+ pkgrel = 1
+ url = https://github.com/sccn/liblsl/
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = cmake
+ makedepends = patchelf
+ depends = gcc-libs
+ provides = liblsl
+ conflicts = liblsl
+ source = liblsl-1.13.1.tar.gz::https://github.com/sccn/liblsl/archive/1.13.1.tar.gz
+ md5sums = 23dee2f87cb55ca867c24a389ac6525c
+
+pkgname = liblsl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..baac186f2da
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Marc Vidal <mvidaldp@gmail.com>
+
+pkgname="liblsl"
+pkgver=1.13.1
+pkgrel=1
+pkgdesc="C++ lsl library for multi-modal time-synched data transmission over the local network (stable release)"
+arch=('x86_64')
+url="https://github.com/sccn/liblsl/"
+license=('MIT')
+provides=($pkgname)
+conflicts=($pkgname)
+depends=('gcc-libs')
+makedepends=('git' 'cmake' 'patchelf')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sccn/${pkgname}/archive/${pkgver}.tar.gz")
+md5sums=('23dee2f87cb55ca867c24a389ac6525c')
+
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ mkdir -p build
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver/build"
+ cmake .. -DLSL_NO_FANCY_LIBNAME=ON
+ make
+}
+
+package() {
+ install -Dm 755 $srcdir/$pkgname-$pkgver/build/liblsl.so.$pkgver $pkgdir/usr/lib/liblsl.so.$pkgver
+ ln -rs -T $pkgdir/usr/lib/liblsl.so.$pkgver $pkgdir/usr/lib/liblsl.so
+ patchelf --set-rpath /usr/lib $srcdir/$pkgname-$pkgver/build/lslver
+ install -Dm 755 $srcdir/$pkgname-$pkgver/build/lslver $pkgdir/usr/bin/lslver
+ install -Dm 755 $srcdir/$pkgname-$pkgver/include/lsl_c.h $pkgdir/usr/include/lsl_c.h
+ install -Dm 755 $srcdir/$pkgname-$pkgver/include/lsl_cpp.h $pkgdir/usr/include/lsl_cpp.h
+ install -Dm 644 $srcdir/$pkgname-$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+} \ No newline at end of file