blob: 7c2e37d165cfd056b170890e17787a79c7125410 (
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
41
42
43
44
45
46
47
|
# Maintainer: Manuel Coenen <manuel dot coenen at gmail dot com>
pkgname=ser4010-tools-git
pkgver=r27.8c843cc
pkgrel=2
pkgdesc="Tools for UART controllable SI4010 based tunable OOK/FSK RF transmitter"
arch=('any')
url="https://github.com/dimhoff/ser4010"
license=('BSD')
makedepends=('git'
'cmake'
'make'
'gcc')
optdepends=('si4010prog: si4010 chip programming',
'ser4010_firmware: firmware to be flashed to si4010 chip')
provides=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/dimhoff/ser4010.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}/build"
rm -rf *
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DDEFAULT_SERIAL_DEV=/dev/ttyAMA0 \
../
make
}
package() {
cd "$srcdir/${pkgname%-git}/build/tools"
install -Dm755 ser4010_dump "${pkgdir}"/usr/bin/ser4010_dump
install -Dm755 ser4010_test_comm "${pkgdir}"/usr/bin/ser4010_test_comm
install -Dm755 ser4010_somfy "${pkgdir}"/usr/bin/ser4010_somfy
install -Dm755 ser4010_kaku "${pkgdir}"/usr/bin/ser4010_kaku
install -Dm755 ser4010_si443x "${pkgdir}"/usr/bin/ser4010_si443x
cd "$srcdir/${pkgname%-git}"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}
# vim:set ts=2 sw=2 ft=sh et:
|