diff options
author | Konrad Beckmann | 2020-07-21 14:10:03 +0200 |
---|---|---|
committer | Konrad Beckmann | 2020-07-21 16:40:20 +0200 |
commit | 5a7619e2801e0d015dbd825e4e002726143538e3 (patch) | |
tree | e3347f565716596b90ac25791f9fbde98dfbec65 | |
download | aur-5a7619e2801e0d015dbd825e4e002726143538e3.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5d95f16f0572 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = soapyairspyhf-git + pkgdesc = SoapySDR plugin for Airspy HF+ + pkgver = 20200721 + pkgrel = 1 + epoch = 2 + url = https://github.com/pothosware/SoapyAirspyHF + arch = any + license = MIT + makedepends = git + depends = soapysdr + depends = airspyhf + provides = soapyairspyhf + conflicts = soapyairspyhf + source = soapyairspyhf-git::git+https://github.com/pothosware/SoapyAirspyHF.git + sha256sums = SKIP + +pkgname = soapyairspyhf-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..57a908f390a8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Konrad Beckmann <konrad.beckmann@gmail.com> + +pkgname=soapyairspyhf-git +pkgver=r26.5488dac +pkgrel=1 +epoch=2 +pkgdesc="SoapySDR plugin for Airspy HF+" +arch=('any') +url="https://github.com/pothosware/SoapyAirspyHF" +license=('MIT') +depends=('soapysdr' 'airspyhf') +makedepends=('git') +provides=('soapyairspyhf') +conflicts=('soapyairspyhf') +source=(${pkgname}::"git+https://github.com/pothosware/SoapyAirspyHF.git") +sha256sums=('SKIP') + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${pkgname}" + mkdir -p build + cd build + cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + make -C "${srcdir}/${pkgname}/build" DESTDIR="${pkgdir}" install +} + |