summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorcyrozap2015-10-15 20:21:07 -0400
committercyrozap2015-10-15 20:21:07 -0400
commit1771e8a0b90e7777212b268428c364256d38b100 (patch)
tree07aa7e548ffe34db4b711826e77dbf8bea87b4d6 /PKGBUILD
downloadaur-gr-cc1111-git.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ca687951ff3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Forest Crossman <cyrozap at gmail dot com>
+# Modified from gr-osmosdr-git PKGBUILD
+
+pkgname=gr-cc1111-git
+pkgver=6b5eb0
+pkgrel=1
+pkgdesc="CC1111 packet encoder/decoder for GNU Radio"
+arch=('i686' 'x86_64')
+url="https://github.com/funoverip/gr-cc1111"
+license=('GPL3')
+depends=(
+ 'gnuradio'
+ 'swig'
+ )
+makedepends=(
+ 'git'
+ 'cmake'
+ 'boost'
+ )
+source=('git+https://github.com/funoverip/gr-cc1111.git')
+md5sums=('SKIP')
+
+_gitname="gr-cc1111"
+
+pkgver() {
+ cd $_gitname
+ git describe --always | sed 's|-|.|g; s|^.||'
+}
+
+build() {
+ cd $_gitname
+ mkdir -p build
+ cd build
+ cmake -DPYTHON_EXECUTABLE=$(which python2) -DPYTHON_INCLUDE_DIR=$(echo /usr/include/python2*) -DPYTHON_LIBRARY=$(echo /usr/lib/libpython2.*.so) -DCMAKE_INSTALL_PREFIX=/usr ../src/gr-cc1111
+ make
+}
+
+package() {
+ cd $_gitname/build
+ make DESTDIR=${pkgdir} install
+}