blob: c031ab2306aa8dab7e44a3309125f3ac4f9ecd3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Timo S. Prinz <t.prinz@coliza.de>
# Contributor: Dan Nixon <dan@dan-nixon.com>
pkgname=qdmr
pkgver=0.12.1
pkgrel=1
pkgdesc="A GUI application for configuring and programming cheap DMR radios"
arch=('x86_64' 'i686')
url="https://github.com/hmatuschek/qdmr"
license=('GPL-3.0-or-later')
depends=('libusb' 'qt5-tools' 'qt5-serialport' 'qt5-location' 'yaml-cpp')
makedepends=('cmake' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("qdmr-$pkgver.tar.gz::https://github.com/hmatuschek/qdmr/archive/refs/tags/v$pkgver.tar.gz"
'udev-rules.patch')
sha256sums=('80eaadc6f817894fde6773d1b021e7a8ec051cbb774f63e6a097e21d8a56d8b5'
'f9bc5366df6186e475d010e79d002bf1d495220f269535c526b1faaf14fa1997')
prepare() {
cd "$srcdir/${pkgname}-${pkgver}"
patch --forward --strip=2 --input="${srcdir}/udev-rules.patch"
}
build() {
local cmake_options=(
-B build
-S $pkgname-$pkgver
-W no-dev
-D CMAKE_BUILD_TYPE=None
-D CMAKE_INSTALL_PREFIX=/usr
-D INSTALL_UDEV_RULES=ON
-D INSTALL_UDEV_PATH=/etc/udev/rules.d
)
cmake "${cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|