summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasoud2016-12-04 06:28:40 +0100
committerMasoud2016-12-04 06:28:40 +0100
commit3ff2da343641aa16c01321cf9ab16b5fe30afcc9 (patch)
treeb8d5a74a428cfae7dcc656bc77c5f243c6d35c1e
parent3a17906b608c7530a9bb0eceaf98362b80879319 (diff)
downloadaur-soapyrtlsdr-git.tar.gz
Updated the version
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD17
2 files changed, 14 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index eafc74a7d6b..c72d641254c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,13 @@
-# Generated by mksrcinfo v8
-# Mon Feb 29 20:00:30 UTC 2016
pkgbase = soapyrtlsdr-git
pkgdesc = SoapySDR RTL-SDR Support Module
- pkgver = r53.a44abc3
+ pkgver = 0.2.2.r3.g12aa0a2
pkgrel = 1
- epoch = 2
+ epoch = 3
url = https://github.com/pothosware/SoapySDR
arch = any
license = MIT
makedepends = git
+ makedepends = cmake
depends = soapysdr
depends = rtl-sdr
provides = soapyrtlsdr
diff --git a/PKGBUILD b/PKGBUILD
index 11df53e820e..7e75dd21e8e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,17 @@
-# Maintainer: valvetime <valvetimepackages@gmail.com>
+# Maintainer: Masoud <mpoloton@gmail.com>
+# Contributor: valvetime <valvetimepackages@gmail.com>
# Contributor: Tom Swartz <tom@tswartz.net>
pkgname=soapyrtlsdr-git
-pkgver=r53.a44abc3
+pkgver=0.2.2.r3.g12aa0a2
pkgrel=1
-epoch=2
+epoch=3
pkgdesc="SoapySDR RTL-SDR Support Module"
arch=('any')
url="https://github.com/pothosware/SoapySDR"
license=('MIT')
depends=('soapysdr' 'rtl-sdr')
-makedepends=('git')
+makedepends=('git' 'cmake')
provides=('soapyrtlsdr')
conflicts=('soapyrtlsdr')
source=(${pkgname}::"git+https://github.com/pothosware/SoapyRTLSDR.git")
@@ -18,7 +19,7 @@ sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long | sed 's/^soapy.rtlsdr-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
@@ -26,10 +27,14 @@ build() {
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
- make -j4
+ make
}
package() {
make -C "${srcdir}/${pkgname}/build" DESTDIR="${pkgdir}" install
+
+ # install the license
+ mkdir -p "$pkgdir/usr/share/licenses/soapyrtlsdr-git"
+ cp "$srcdir/soapyrtlsdr-git/LICENSE.txt" "$pkgdir/usr/share/licenses/soapyrtlsdr-git/"
}