[arch-commits] Commit in srslte/repos (4 files)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Dec 17 06:36:30 UTC 2021
Date: Friday, December 17, 2021 @ 06:36:29
Author: felixonmars
Revision: 1075864
archrelease: copy trunk to community-staging-x86_64
Added:
srslte/repos/community-staging-x86_64/
srslte/repos/community-staging-x86_64/PKGBUILD
(from rev 1075863, srslte/trunk/PKGBUILD)
srslte/repos/community-staging-x86_64/srslte-avx2.install
(from rev 1075863, srslte/trunk/srslte-avx2.install)
srslte/repos/community-staging-x86_64/srslte.install
(from rev 1075863, srslte/trunk/srslte.install)
---------------------+
PKGBUILD | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++
srslte-avx2.install | 4 ++
srslte.install | 4 ++
3 files changed, 96 insertions(+)
Copied: srslte/repos/community-staging-x86_64/PKGBUILD (from rev 1075863, srslte/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-17 06:36:29 UTC (rev 1075864)
@@ -0,0 +1,88 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgbase=srslte
+pkgname=($pkgbase $pkgbase-avx2)
+_pkgname=srsRAN
+pkgver=20.04.2
+_pkgver=release_${pkgver//./_}
+pkgrel=10
+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/srsran/srsRAN/archive/$_pkgver.tar.gz")
+sha512sums=('dec2aa6d6aee89d0b9a2e425c6ef37701cc57bcd4a4646e3b60b22ef2bc08899c6739fb9f9d90dba3473068561c606843ebb8f3731a3515d206a8aafdba015f1')
+
+prepare() {
+ cd $_pkgname-$_pkgver
+
+ # Using too old of a version to even attempt to properly fix these
+ CFLAGS+=' -Wno-error=stringop-overflow -Wno-error=array-parameter -Wno-error=stringop-truncation'
+ CXXFLAGS+=' -Wno-error=stringop-overflow -Wno-error=array-parameter -Wno-error=stringop-truncation'
+
+ # 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 1075863, srslte/trunk/srslte-avx2.install)
===================================================================
--- community-staging-x86_64/srslte-avx2.install (rev 0)
+++ community-staging-x86_64/srslte-avx2.install 2021-12-17 06:36:29 UTC (rev 1075864)
@@ -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 1075863, srslte/trunk/srslte.install)
===================================================================
--- community-staging-x86_64/srslte.install (rev 0)
+++ community-staging-x86_64/srslte.install 2021-12-17 06:36:29 UTC (rev 1075864)
@@ -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