summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b91c437706f5a3ba41bb06e26323a061d008152d (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
pkgname=blink1
pkgver=2.1.0
pkgrel=1
pkgdesc='software for blink(1) USB RGB LED'
arch=('i686' 'x86_64')
url='https://github.com/todbot/blink1-tool/'
license=('GPL')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/todbot/blink1-tool/archive/v${pkgver}.tar.gz")
source=("git+https://github.com/todbot/blink1-tool.git#tag=v${pkgver}")
sha256sums=('SKIP')

prepare() {
  cd "${srcdir}/${pkgname}-tool"
  git submodule init
  git submodule update
}

build() {
  cd "${srcdir}/${pkgname}-tool"
  make
}

package() {
  # binary
  install -D -m0755 "${srcdir}/${pkgname}-tool/blink1-tool" "${pkgdir}/usr/bin/blink1-tool"
}