Date: Saturday, November 24, 2018 @ 19:31:00
  Author: ffy00
Revision: 409639

upgpkg: libosmosdr 0.1.r10.gba4fd96-1

Added:
  libosmosdr/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2018-11-24 19:31:00 UTC (rev 409639)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <la...@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
+}
+

Reply via email to