diff options
author | Greyson Christoforo | 2021-11-14 17:38:08 +0000 |
---|---|---|
committer | Greyson Christoforo | 2021-11-14 17:38:08 +0000 |
commit | 736c1c9370ee3cba000cdbfa1f2f66dbb3c122e9 (patch) | |
tree | c7b487f06582542ff2b6fa9695b4c4eee0e9dd57 /PKGBUILD | |
download | aur-gnuradio-scopy-git.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5a9581d22566 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Grey Christoforo <first name at last name dot net> + +pkgname=gnuradio-scopy-git +pkgver=r9.ee184f7 +pkgrel=1 +epoch=0 +pkgdesc='Scopy IIO blocks for GNU Radio' +arch=('x86_64') +url='https://github.com/analogdevicesinc/gr-scopy' +license=('LGPL') +depends=( +gnuradio38 +gnuradio38-companion +) +makedepends=( +cmake +git +ninja +) +provides=(gnuradio-scopy) +conflicts=(gnuradio-scopy) +source=("git+https://github.com/analogdevicesinc/gr-scopy.git") +md5sums=('SKIP') + +pkgver() { + cd gr-scopy + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd gr-scopy +} + +build() { + cd gr-scopy + + cmake -W no-dev -G Ninja -B build_dir -S . \ + -D CMAKE_BUILD_TYPE='None' \ + -D CMAKE_INSTALL_PREFIX='/usr' + + cmake --build build_dir +} + +check() { + cd gr-scopy + cd build_dir + true +} + +package() { + cd gr-scopy + DESTDIR="${pkgdir}" cmake --install build_dir + + install -Dt "${pkgdir}${_destdir}/share/licenses/${pkgname}" -m644 LICENSE +} + |