[arch-commits] Commit in libosmosdr/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:45:09 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:45:08
  Author: felixonmars
Revision: 658582

archrelease: copy trunk to community-staging-x86_64

Added:
  libosmosdr/repos/community-staging-x86_64/
  libosmosdr/repos/community-staging-x86_64/PKGBUILD
    (from rev 658581, libosmosdr/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: libosmosdr/repos/community-staging-x86_64/PKGBUILD (from rev 658581, libosmosdr/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 13:45:08 UTC (rev 658582)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=libosmosdr
+_pkgname=osmo-sdr
+_commit=ba4fd96622606620ff86141b4d0aa564712a735a
+pkgver=0.1.r10.gba4fd96
+pkgrel=2
+pkgdesc='Library to communicate with OsmoSDR devices'
+arch=('x86_64')
+url='https://sdr.osmocom.org/trac/'
+license=('GPL3')
+makedepends=('git' 'cmake')
+source=("git+https://git.osmocom.org/osmo-sdr#commit=$_commit")
+sha512sums=('SKIP')
+
+pkgver() {
+  cd "$srcdir"/$_pkgname
+  git describe --long | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+  mkdir -p $_pkgname/build
+  cd $_pkgname/build
+
+  cmake ../software/libosmosdr \
+  	-DCMAKE_INSTALL_PREFIX=/usr \
+  	-DCMAKE_BUILD_TYPE=Release
+
+  make
+}
+
+package() {
+  cd $_pkgname/build
+
+  make DESTDIR="$pkgdir" install
+}
+



More information about the arch-commits mailing list