summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorfrealgagu2018-11-08 16:14:18 -0500
committerfrealgagu2018-11-08 16:14:18 -0500
commite97a97cbd96fd1d9015b9c5eafe67fd2074054c5 (patch)
tree5eba9dea0aeb835bd2cea4396a5e8ad719cf8253 /PKGBUILD
parent14115e061982c04df410b58648ed8f19f929d187 (diff)
downloadaur-e97a97cbd96fd1d9015b9c5eafe67fd2074054c5.tar.gz
Compiling in chroot.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 8 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 74bc66c12ff..32c487d7942 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,31 +7,27 @@ pkgdesc="An open source DAB and DAB+ software defined radio (SDR) with support f
arch=("x86_64")
url="https://www.${pkgname}"
license=("GPL2")
-depends=("faad2" "fftw" "qt5-charts" "qt5-declarative" "qt5-quickcontrols" "qt5-quickcontrols2" "qt5-multimedia" "rtl-sdr")
+depends=("faad2" "fftw" "qt5-charts" "qt5-quickcontrols" "qt5-quickcontrols2" "qt5-multimedia" "rtl-sdr")
optdepends=("airspy")
-makedepends=("gcc" "cmake")
+makedepends=("cmake" "gcc")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/AlbrechtL/${pkgname}/archive/V${pkgver}.tar.gz")
sha256sums=("669ae5d471f723c32622cbf6ee37b66c3aefd8e02d6334b55d1fb60b3c22a883")
build() {
- mkdir -p "${pkgname}-${pkgver}/build"
- cd "${pkgname}-${pkgver}/build"
+ mkdir -p "${srcdir}/${pkgname}-${pkgver}/build"
+ cd "${srcdir}/${pkgname}-${pkgver}/build"
cmake .. -DRTLSDR=1
make
}
package() {
- msg2 "Installing desktop file into /usr/share/applications/"
install -D -m 0644 "${srcdir}/${pkgname}-${pkgver}/${pkgname/./-}.desktop" "${pkgdir}/usr/share/applications/${pkgname/./-}.desktop"
-
- msg2 "Installing icon into /usr/share/pixmaps/"
+
install -D -m 0644 "${srcdir}/${pkgname}-${pkgver}/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname/./-}.png"
-
- msg2 "Installing application"
- cd "${pkgname}-${pkgver}/build"
+
+ cd "${srcdir}/${pkgname}-${pkgver}/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"
}