[arch-commits] Commit in srslte/repos (4 files)

Felix Yan felixonmars at archlinux.org
Sat Dec 12 15:52:29 UTC 2020


    Date: Saturday, December 12, 2020 @ 15:52:29
  Author: felixonmars
Revision: 773349

archrelease: copy trunk to community-staging-x86_64

Added:
  srslte/repos/community-staging-x86_64/
  srslte/repos/community-staging-x86_64/PKGBUILD
    (from rev 773348, srslte/trunk/PKGBUILD)
  srslte/repos/community-staging-x86_64/srslte-avx2.install
    (from rev 773348, srslte/trunk/srslte-avx2.install)
  srslte/repos/community-staging-x86_64/srslte.install
    (from rev 773348, srslte/trunk/srslte.install)

---------------------+
 PKGBUILD            |   84 ++++++++++++++++++++++++++++++++++++++++++++++++++
 srslte-avx2.install |    4 ++
 srslte.install      |    4 ++
 3 files changed, 92 insertions(+)

Copied: srslte/repos/community-staging-x86_64/PKGBUILD (from rev 773348, srslte/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-12-12 15:52:29 UTC (rev 773349)
@@ -0,0 +1,84 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgbase=srslte
+pkgname=($pkgbase $pkgbase-avx2)
+_pkgname=srsLTE
+pkgver=20.04.2
+_pkgver=release_${pkgver//./_}
+pkgrel=3
+pkgdesc='Open source SDR LTE software suite from Software Radio Systems (SRS)'
+arch=('x86_64')
+url='https://www.srslte.com'
+license=('AGPL3')
+depends=('fftw' 'mbedtls' 'boost-libs' 'lksctp-tools' 'libconfig'
+         'libuhd' 'soapysdr' 'bladerf' 'zeromq' 'pcsclite' 'srsgui')
+makedepends=('cmake' 'boost')
+provides=('srsue' 'srsenb' 'srsenb')
+conflicts=('srsue' 'srsenb' 'srsenb')
+source=("$_pkgname-$pkgver.tar.gz::https://github.com/srsLTE/srsLTE/archive/$_pkgver.tar.gz")
+sha512sums=('2db146ab30e19fe2027252d5f4fd8c52385923e24d721f4deee01a99b8fbb9b03758997bc336fb0773e0633f0cdf1fa769e3f251e7b02b18a8f0e2d6d25e42d7')
+
+prepare() {
+  cd $_pkgname-$_pkgver
+
+  # Disable failing test
+  sed -i '/add_test(ue_rf_failure/d' srsue/src/CMakeLists.txt
+
+  mkdir build
+
+  cp -r "$srcdir"/$_pkgname-$_pkgver "$srcdir"/$_pkgname-avx2-$_pkgver
+}
+
+build() {
+  echo 'Building srslte...'
+  cd "$srcdir"/$_pkgname-$_pkgver/build
+
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DENABLE_GENERIC=True
+
+  make
+
+  echo 'Building srslte-avx2...'
+  cd "$srcdir"/$_pkgname-avx2-$_pkgver/build
+
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DENABLE_GENERIC=True \
+    -DHAVE_AVX2=True
+
+  make
+}
+
+check() {
+  echo 'Running tests for srslte...'
+  cd "$srcdir"/$_pkgname-$_pkgver/build
+
+  ctest $(echo $MAKEFLAGS | grep -Po '\-j[0-9][0-9]*')
+
+  echo 'Running tests for srslte-avx2...'
+  cd "$srcdir"/$_pkgname-avx2-$_pkgver/build
+
+  ctest $(echo $MAKEFLAGS | grep -Po '\-j[0-9][0-9]*')
+}
+
+package_srslte() {
+  install=$pkgname.install
+
+  cd $_pkgname-$_pkgver/build
+
+  make DESTDIR="$pkgdir" install
+}
+
+package_srslte-avx2() {
+  pkgdesc="$pkgdesc (with AVX2 extensions)"
+  provides=($pkgbase)
+  conflicts=($pkgbase)
+  install=$pkgname.install
+
+  cd $_pkgname-avx2-$_pkgver/build
+
+  make DESTDIR="$pkgdir" install
+}

Copied: srslte/repos/community-staging-x86_64/srslte-avx2.install (from rev 773348, srslte/trunk/srslte-avx2.install)
===================================================================
--- community-staging-x86_64/srslte-avx2.install	                        (rev 0)
+++ community-staging-x86_64/srslte-avx2.install	2020-12-12 15:52:29 UTC (rev 773349)
@@ -0,0 +1,4 @@
+post_install(){
+    echo 'The binaries in the package include AVX2 instructions.'
+    echo 'If your CPU does not support them please use the sdrangel package.'
+}

Copied: srslte/repos/community-staging-x86_64/srslte.install (from rev 773348, srslte/trunk/srslte.install)
===================================================================
--- community-staging-x86_64/srslte.install	                        (rev 0)
+++ community-staging-x86_64/srslte.install	2020-12-12 15:52:29 UTC (rev 773349)
@@ -0,0 +1,4 @@
+post_install(){
+    echo 'The binaries in the package have limited SIMD support.'
+    echo 'Please consider using srslte-avx2 if your CPU supports AVX2 extensions, it will give you a bigperformance boost.'
+}



More information about the arch-commits mailing list