diff options
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 58 |
3 files changed, 51 insertions, 37 deletions
@@ -1,23 +1,25 @@ pkgbase = welle.io-git - pkgdesc = Open source DAB and DAB+ software defined radio - pkgver = V20170826.r134.gfea3a21 + pkgdesc = An open source DAB and DAB+ software defined radio (SDR) with support for rtl-sdr (RTL2832U) and airspy + pkgver = 1.0.r13.9268e6d pkgrel = 1 - url = https://github.com/AlbrechtL/welle.io + url = https://www.welle.io arch = x86_64 - license = GPL - makedepends = git + license = GPL2 makedepends = gcc - depends = qt5-multimedia - depends = qt5-declarative - depends = qt5-charts - depends = fftw + makedepends = cmake + makedepends = git depends = faad2 + depends = fftw + depends = qt5-charts + depends = qt5-declarative + depends = qt5-multimedia depends = rtl-sdr - depends = airspy + optdepends = airspy + optdepends = qt5-quickcontrols2 provides = welle.io conflicts = welle.io - source = git://github.com/AlbrechtL/welle.io - md5sums = SKIP + source = welle.io::git://github.com/AlbrechtL/welle.io + sha256sums = SKIP pkgname = welle.io-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..1680469c10b6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +welle.io-git-*.pkg.tar.xz +welle.io/ +pkg/ +src/ @@ -1,37 +1,45 @@ +# Maintainer: Fredy GarcĂa <frealgagu at gmail dot com> # Maintainer: Daniel Strobl <danielstrobl:gmail> + pkgname=welle.io-git -pkgver=V20170826.r134.gfea3a21 +pkgver=1.0.r13.9268e6d pkgrel=1 -pkgdesc="Open source DAB and DAB+ software defined radio" -arch=('x86_64') -url="https://github.com/AlbrechtL/welle.io" -license=('GPL') -depends=('qt5-multimedia' 'qt5-declarative' 'qt5-charts' 'fftw' 'faad2' 'rtl-sdr' 'airspy') -makedepends=('git' 'gcc') -provides=('welle.io') -conflicts=('welle.io') -source=('git://github.com/AlbrechtL/welle.io') -md5sums=('SKIP') +pkgdesc="An open source DAB and DAB+ software defined radio (SDR) with support for rtl-sdr (RTL2832U) and airspy" +arch=("x86_64") +url="https://www.${pkgname%-git}" +license=("GPL2") +depends=("faad2" "fftw" "qt5-charts" "qt5-declarative" "qt5-multimedia" "rtl-sdr") +optdepends=("airspy" "qt5-quickcontrols2") +makedepends=("gcc" "cmake" "git") +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("${pkgname%-git}::git://github.com/AlbrechtL/${pkgname%-git}") +sha256sums=("SKIP") pkgver() { - cd welle.io - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + cd "${pkgname%-git}" + git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g' | tr -d V } build() { - cd welle.io - qmake welle.io.pro - make + mkdir -p "${pkgname%-git}/build" + cd "${pkgname%-git}/build" + cmake .. -DRTLSDR=1 + make } package() { - cd welle.io - mkdir "$pkgdir/usr" - mkdir "$pkgdir/usr/bin" - mkdir "$pkgdir/usr/share" - mkdir "$pkgdir/usr/share/applications" - mkdir "$pkgdir/usr/share/pixmaps" - cp welle-io "$pkgdir/usr/bin" - cp welle-io.desktop "$pkgdir/usr/share/applications" - cp icon.png "$pkgdir/usr/share/pixmaps/welle-io.png" + msg2 "Installing desktop file into /usr/share/applications/" + install -D -m 0644 "${srcdir}/${pkgname%-git}/${pkgname/%.io-git/-io}.desktop" "${pkgdir}/usr/share/applications/${pkgname/%.io-soapysdr-git/-io}.desktop" + + msg2 "Installing icon into /usr/share/pixmaps/" + install -D -m 0644 "${srcdir}/${pkgname%-git}/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname/%.io-soapysdr-git/-io}.png" + + msg2 "Installing application" + cd "${pkgname%-git}/build" + make DESTDIR=${pkgdir} install + + msg2 "Moving from /usr/local/bin to /usr/bin to match Arch packaging standards" + mv "${pkgdir}/usr/local/"* "${pkgdir}/usr/" + rm -r "${pkgdir}/usr/local" } |