[arch-commits] Commit in libosmosdr/repos (community-x86_64 community-x86_64/PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sat Nov 24 19:31:09 UTC 2018


    Date: Saturday, November 24, 2018 @ 19:31:08
  Author: ffy00
Revision: 409640

archrelease: copy trunk to community-x86_64

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

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

Copied: libosmosdr/repos/community-x86_64/PKGBUILD (from rev 409639, libosmosdr/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-11-24 19:31:08 UTC (rev 409640)
@@ -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=1
+pkgdesc='Library to communicate with OsmoSDR devices'
+arch=('x86_64')
+url='http://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