summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca14fe306dd9e6b6cec2a34c1c54bba76cf20d1e (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
# Maintainer: Matt Coffin <mcoffin13@gmail.com>
pkgname=bossa
pkgver=1.9.1
pkgrel=5
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')
depends=('readline' 'wxwidgets-gtk3')
source=("https://github.com/shumatech/BOSSA/archive/$pkgver.tar.gz"
        "0001-makefile-allow-for-version-override.patch"
        "0002_update_wxversion_for_wxwidget3_switchover.patch")
sha256sums=('ca650455dfa36cbd029010167347525bea424717a71a691381c0811591c93e72'
            '9ec36b0d771457efe0e891c61c608db2058ada81ba7a4536c189a33210d6612f'
            '59c86a3e6c0a94a98bfab6647583740d77896945e774a847cf589d7855d3d54c')

prepare() {
  cd "$srcdir/BOSSA-$pkgver"
  patch -p1 < "$srcdir/0001-makefile-allow-for-version-override.patch"
  patch -p1 < "$srcdir/0002_update_wxversion_for_wxwidget3_switchover.patch"
}

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

package() {
  cd "$srcdir/BOSSA-$pkgver"
  mkdir -p "$pkgdir/usr/bin"
  cp bin/bossa* "$pkgdir/usr/bin/"
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/BSD-3-Clause"
}

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