summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormvidaldp2021-01-11 19:42:06 +0100
committermvidaldp2021-01-11 19:42:06 +0100
commit46de1daf8ebc07be750cf187761e1ea9f162437f (patch)
tree62be6a4e8ffff267b49c9dba0ddb9fdee141f27e
parent1b56446b1fa8d393678858ad61d56022e19e0928 (diff)
downloadaur-46de1daf8ebc07be750cf187761e1ea9f162437f.tar.gz
Update to version 1.14.0, improve syntax and info
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD79
2 files changed, 43 insertions, 44 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0d4bc42e791..0f4a625f39d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,17 @@
pkgbase = liblsl
pkgdesc = C++ lsl library for multi-modal time-synched data transmission over the local network (stable release)
- pkgver = 1.13.1
+ pkgver = v1.14.0
pkgrel = 1
url = https://github.com/sccn/liblsl/
- arch = x86_64
+ arch = any
license = MIT
makedepends = git
makedepends = cmake
makedepends = patchelf
depends = gcc-libs
provides = liblsl
- conflicts = liblsl
- source = liblsl-1.13.1::git+ssh://git@github.com/sccn/liblsl.git#tag=1.13.1
+ conflicts = liblsl-git
+ source = liblsl-1.14.0::git+ssh://git@github.com/sccn/liblsl.git#tag=v1.14.0
md5sums = SKIP
pkgname = liblsl
diff --git a/PKGBUILD b/PKGBUILD
index 43e4591cdbf..86560e1e5f8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,53 +1,52 @@
# Maintainer: Marc Vidal <mvidaldp@gmail.com>
-pkgname="liblsl"
-pkgver=1.13.1
+pkgname=liblsl
+pkgver=v1.14.0
+_pkgver=1.14.0
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/"
+pkgdesc='C++ lsl library for multi-modal time-synched data transmission over the local network (stable release)'
+arch=('any')
+url='https://github.com/sccn/liblsl/'
license=('MIT')
-provides=($pkgname)
-conflicts=($pkgname)
depends=('gcc-libs')
makedepends=('git' 'cmake' 'patchelf')
-source=("${pkgname}-${pkgver}::git+ssh://git@github.com/sccn/liblsl.git#tag=${pkgver}")
+provides=($pkgname)
+conflicts=("${pkgname}-git")
+source=("${pkgname}-${_pkgver}::git+ssh://git@github.com/sccn/liblsl.git#tag=${pkgver}")
md5sums=('SKIP')
-
-prepare() {
- mkdir -p build "$srcdir/$pkgname-$pkgver/build"
- sed -i "s/CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT/CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND NOT LSL_PRESERVE_INSTALL_PREFIX/" "$srcdir/$pkgname-$pkgver/cmake/LSLCMake.cmake"
-}
-
build() {
- cd "$srcdir/$pkgname-$pkgver/build"
- cmake -DLSL_NO_FANCY_LIBNAME=ON ..
- make
+ cmake \
+ -B "${pkgname}-${_pkgver}/build" \
+ -S "${pkgname}-${_pkgver}" \
+ -DLSL_UNIXFOLDERS=ON \
+ -DCMAKE_BUILD_TYPE:STRING='None' \
+ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
+ -Wno-dev
+ make -C "${pkgname}-${_pkgver}/build"
}
package() {
- mkdir -p $pkgdir/opt/LSL/bin
- mkdir -p $pkgdir/opt/LSL/include
- mkdir -p $pkgdir/opt/LSL/lib
- mkdir -p $pkgdir/opt/LSL/share/licenses
- install -Dm 755 $srcdir/$pkgname-$pkgver/build/$pkgname.so.$pkgver $pkgdir/usr/lib/$pkgname.so.$pkgver
- ln -rs -T $pkgdir/usr/lib/$pkgname.so.$pkgver $pkgdir/usr/lib/$pkgname.so
- ln -rs -T $pkgdir/usr/lib/$pkgname.so $pkgdir/opt/LSL/lib/$pkgname.so.$pkgver
- ln -rs -T $pkgdir/opt/LSL/lib/$pkgname.so.$pkgver $pkgdir/opt/LSL/lib/$pkgname.so
- install -Dm 755 $srcdir/$pkgname-$pkgver/build/LSLConfig.cmake $pkgdir/opt/LSL/LSLConfig.cmake
- install -Dm 755 $srcdir/$pkgname-$pkgver/build/LSLTargets.cmake $pkgdir/opt/LSL/LSLTargets.cmake
- install -Dm 755 $srcdir/$pkgname-$pkgver/build/LSLCMake.cmake $pkgdir/opt/LSL/LSLCMake.cmake
- install -Dm 755 $srcdir/$pkgname-$pkgver/build/LSLConfigVersion.cmake $pkgdir/opt/LSL/LSLConfigVersion.cmake
- install -Dm 755 $srcdir/$pkgname-$pkgver/build/CPackConfig.cmake $pkgdir/opt/LSL/CPackConfig.cmake
- install -Dm 755 $srcdir/$pkgname-$pkgver/build/CPackSourceConfig.cmake $pkgdir/opt/LSL/CPackSourceConfig.cmake
- patchelf --set-rpath /usr/lib $srcdir/$pkgname-$pkgver/build/lslver
- install -Dm 755 $srcdir/$pkgname-$pkgver/build/lslver $pkgdir/usr/bin/lslver
- ln -rs -T $pkgdir/usr/bin/lslver $pkgdir/opt/LSL/bin/lslver
- install -Dm 755 $srcdir/$pkgname-$pkgver/include/lsl_c.h $pkgdir/usr/include/lsl_c.h
- ln -rs -T $pkgdir/usr/include/lsl_c.h $pkgdir/opt/LSL/include/lsl_c.h
- install -Dm 755 $srcdir/$pkgname-$pkgver/include/lsl_cpp.h $pkgdir/usr/include/lsl_cpp.h
- ln -rs -T $pkgdir/usr/include/lsl_cpp.h $pkgdir/opt/LSL/include/lsl_cpp.h
- install -Dm 644 $srcdir/$pkgname-$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
- ln -rs -T $pkgdir/usr/share/licenses/$pkgname/LICENSE $pkgdir/opt/LSL/share/licenses/LICENSE
+ mkdir -p "${pkgdir}/opt/LSL/bin"
+ mkdir -p "${pkgdir}/opt/LSL/include"
+ mkdir -p "${pkgdir}/opt/LSL/lib"
+ mkdir -p "${pkgdir}/opt/LSL/share/licenses"
+ install -Dm 755 "${pkgname}-${_pkgver}/build/${pkgname}.so.${_pkgver}" "${pkgdir}/usr/lib/${pkgname}.so.${_pkgver}"
+ ln -rs -T "${pkgdir}/usr/lib/${pkgname}.so.${_pkgver}" "${pkgdir}/usr/lib/${pkgname}.so"
+ ln -rs -T "${pkgdir}/usr/lib/${pkgname}.so" "${pkgdir}/opt/LSL/lib/${pkgname}.so.${_pkgver}"
+ ln -rs -T "${pkgdir}/opt/LSL/lib/${pkgname}.so.${_pkgver}" "${pkgdir}/opt/LSL/lib/${pkgname}.so"
+ install -Dm 755 "${pkgname}-${_pkgver}/build/LSLConfig.cmake" "${pkgdir}/opt/LSL/LSLConfig.cmake"
+ install -Dm 755 "${pkgname}-${_pkgver}/build/LSLTargets.cmake" "${pkgdir}/opt/LSL/LSLTargets.cmake"
+ install -Dm 755 "${pkgname}-${_pkgver}/build/LSLCMake.cmake" "${pkgdir}/opt/LSL/LSLCMake.cmake"
+ install -Dm 755 "${pkgname}-${_pkgver}/build/LSLConfigVersion.cmake" "${pkgdir}/opt/LSL/LSLConfigVersion.cmake"
+ install -Dm 755 "${pkgname}-${_pkgver}/build/CPackConfig.cmake" "${pkgdir}/opt/LSL/CPackConfig.cmake"
+ install -Dm 755 "${pkgname}-${_pkgver}/build/CPackSourceConfig.cmake" "${pkgdir}/opt/LSL/CPackSourceConfig.cmake"
+ install -Dm 755 "${pkgname}-${_pkgver}/build/lslver" "${pkgdir}/usr/bin/lslver"
+ ln -rs -T "${pkgdir}/usr/bin/lslver" "${pkgdir}/opt/LSL/bin/lslver"
+ install -Dm 755 "${pkgname}-${_pkgver}/include/lsl_c.h" "${pkgdir}/usr/include/lsl_c.h"
+ ln -rs -T "${pkgdir}/usr/include/lsl_c.h" "${pkgdir}/opt/LSL/include/lsl_c.h"
+ install -Dm 755 "${pkgname}-${_pkgver}/include/lsl_cpp.h" "${pkgdir}/usr/include/lsl_cpp.h"
+ ln -rs -T "${pkgdir}/usr/include/lsl_cpp.h" "${pkgdir}/opt/LSL/include/lsl_cpp.h"
+ install -Dm 644 "${pkgname}-${_pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ ln -rs -T "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" "${pkgdir}/opt/LSL/share/licenses/LICENSE"
} \ No newline at end of file