summaryrefslogtreecommitdiff
path: root/pcr/stm32flash/PKGBUILD
blob: a9620fa17df806f064e089e2f54f13507dbce478 (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
# Maintainer(Aur): Andrea Girotto <andrea.girotto@gmail.com>
# Contributor: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>

# Parabola changes and rationale:
# - No changes.

pkgname=stm32flash
pkgver=0.5
pkgrel=3
pkgdesc='Open source flash program for the STM32 ARM processors using the ST serial bootloader over UART or I2C'
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url='https://sourceforge.net/projects/stm32flash/'
license=('GPL2')
makedepends=()
provides=("$pkgname")
conflicts=("$pkgname-git")
source=(http://downloads.sourceforge.net/project/stm32flash/$pkgname-$pkgver.tar.gz)
sha512sums=('a01875a315d92d5e347372b736f2afa2f633851bf13af1326341c0c91e17cef54b6730ed1279280e86d3797033c856dfc25e8c595e010772b9287aaf965273f9')

build() {
  cd $pkgname
  make PREFIX=/usr
}

package() {
  cd $pkgname
  make PREFIX=/usr DESTDIR="${pkgdir}" install
  install -D -m644 gpl-2.0.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
  install -d $pkgdir/usr/share/doc/$pkgname/
  install -m644 AUTHORS HOWTO I2C.txt TODO protocol.txt $pkgdir/usr/share/doc/$pkgname/
}