blob: b393da55a8295b9ca7e51ba05aa7698a7552e29b (
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
|
# Maintainer: Christian Kugler <syphdias+git@gmail.com>
# Contributor: Moritz Kaspar Rudert (mortzu)
# Contributor: Christian Hesse <mail@eworm.de>
pkgname=blink1
pkgver=2.3.0
_tag=597db6b6a4954dbe9ff17a58b9bf6030bd6aaa89
pkgrel=1
pkgdesc='software for blink(1) USB RGB LED'
arch=('i686' 'x86_64')
url='https://github.com/todbot/blink1-tool/'
license=('GPL')
makedepends=('git')
conflicts=('blink1-git')
source=("git+https://github.com/todbot/blink1-tool.git#tag=${_tag}"
'git+https://github.com/libusb/hidapi.git')
sha256sums=('SKIP'
'SKIP')
prepare() {
cd "${srcdir}/${pkgname}-tool"
git submodule init
git config submodule.hidapi.url "${srcdir}/hidapi"
git -c protocol.file.allow=always submodule update
}
build() {
cd "${srcdir}/${pkgname}-tool"
# remove no-format, since it conflicts with format-security
sed -i 's/-Wno-format //' Makefile
make
}
package() {
# binary
install -D -m0755 "${srcdir}/${pkgname}-tool/blink1-tool" "${pkgdir}/usr/bin/blink1-tool"
}
|