summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4e5a19e7abe24d039c701242a6b8e700095328f0 (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
# Maintainer: Allen Wild <allenwild93@gmail.com>
# Contributor: Matt Coffin <mcoffin13@gmail.com>
pkgname=bossa-git
pkgver=1.9.1.r14.g3532de8
pkgrel=3
pkgdesc="Flash programming utility for Atmel's SAM family of flash-based ARM microcontrollers"
arch=('i686' 'x86_64')
url="https://github.com/shumatech/BOSSA"
license=('BSD')
makedepends=('git')
depends=('readline' 'wxgtk2')
provides=('bossa')
conflicts=('bossa')
source=("git+https://github.com/shumatech/BOSSA")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/BOSSA"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$srcdir/BOSSA"
}

build() {
  cd "$srcdir/BOSSA"
  make VERSION="$pkgver"
}

package() {
  cd "$srcdir/BOSSA"
  install -Dm755 -t "$pkgdir/usr/bin/" bin/bossa*
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/BSD-3-Clause"
}

# vim:set ts=2 sw=2 et: