summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Krenek (Mikos)2015-12-03 15:06:34 +0100
committerMichal Krenek (Mikos)2015-12-03 15:06:34 +0100
commitd3a3fe997d179b05958c1da8fb5b0370601ba389 (patch)
tree43e6dc3b2daeb99ee6adc8a2e0cd239143597b03
downloadaur-csdr-git.tar.gz
Initial import
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD37
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..89f7c9c6e9d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = csdr-git
+ pkgdesc = A simple DSP library and command-line tool for Software Defined Radio
+ pkgver = r29.0fd32aa
+ pkgrel = 1
+ url = https://github.com/simonyiszk/csdr
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = python2
+ depends = fftw
+ optdepends = rtl-sdr: csdr-fm script
+ optdepends = mplayer: csdr-fm script
+ optdepends = python2: csdr-fm script
+ provides = csdr
+ conflicts = csdr
+ source = git+https://github.com/simonyiszk/csdr.git
+ sha256sums = SKIP
+
+pkgname = csdr-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bbfc90088dc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Michal Krenek (Mikos) <m.krenek@gmail.com>
+pkgname=csdr-git
+pkgver=r29.0fd32aa
+pkgrel=1
+pkgdesc="A simple DSP library and command-line tool for Software Defined Radio"
+arch=('i686' 'x86_64')
+url="https://github.com/simonyiszk/csdr"
+license=('GPL')
+depends=('fftw')
+makedepends=('git' 'python2')
+optdepends=('rtl-sdr: csdr-fm script' 'mplayer: csdr-fm script' 'python2: csdr-fm script')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=('git+https://github.com/simonyiszk/csdr.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+ sed -i "s/python/python2/g" csdr-fm
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ install -Dm 0755 libcsdr.so ${pkgdir}/usr/lib/libcsdr.so
+ install -Dm 0755 csdr ${pkgdir}/usr/bin/csdr
+ install -Dm 0755 csdr-fm ${pkgdir}/usr/bin/csdr-fm
+}