blob: a9ec7a055e2aa31e4f6225f5d2084d821c5f0def (
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
|
# Maintainer: Manuel Coenen <manuel dot coenen at gmail dot com>
pkgname=si4010prog-git
pkgver=r48.2d5f58f
pkgrel=1
pkgdesc="A tool to program and debug the Silicon Labs SI4010 micro controller."
arch=('any')
url="https://github.com/dimhoff/si4010prog"
license=('GPL2')
makedepends=('git'
'cmake'
'make'
'gcc')
optdepends=('c2_gpio-dkms-git: accessing the si4010 chip via GPIO')
provides=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/dimhoff/si4010prog.git"
'cmake_c_flags_fix.patch')
md5sums=('SKIP'
'824b2c6c2fa5ac3b7902858f83ee5b35')
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 *
patch "$srcdir/${pkgname%-git}"/CMakeLists.txt "$srcdir"/cmake_c_flags_fix.patch
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_C2_BUS_FX2=OFF \
-DWITH_C2_BUS_FT232=OFF \
-DWITH_C2_BUS_C2DRV=ON \
../
make
}
package() {
cd "$srcdir/${pkgname%-git}/build/src"
install -Dm755 si4010prog "${pkgdir}"/usr/bin/si4010prog
install -Dm755 ec2_emul "${pkgdir}"/usr/bin/ec2_emul
}
# vim:set ts=2 sw=2 ft=sh et:
|