summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreyson Christoforo2021-11-14 17:38:08 +0000
committerGreyson Christoforo2021-11-14 17:38:08 +0000
commit736c1c9370ee3cba000cdbfa1f2f66dbb3c122e9 (patch)
treec7b487f06582542ff2b6fa9695b4c4eee0e9dd57
downloadaur-736c1c9370ee3cba000cdbfa1f2f66dbb3c122e9.tar.gz
initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD56
3 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..eb85cb3e1725
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = gnuradio-scopy-git
+ pkgdesc = Scopy IIO blocks for GNU Radio
+ pkgver = r9.ee184f7
+ pkgrel = 1
+ epoch = 0
+ url = https://github.com/analogdevicesinc/gr-scopy
+ arch = x86_64
+ license = LGPL
+ makedepends = cmake
+ makedepends = git
+ makedepends = ninja
+ depends = gnuradio38
+ depends = gnuradio38-companion
+ provides = gnuradio-scopy
+ conflicts = gnuradio-scopy
+ source = git+https://github.com/analogdevicesinc/gr-scopy.git
+ md5sums = SKIP
+
+pkgname = gnuradio-scopy-git
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..80ff8c0d26d5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*.zstd
+*.tar.gz
+src/
+pkg/
+gr-scopy/
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
+}
+