summaryrefslogtreecommitdiff
path: root/pcr/stm32flash/PKGBUILD
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-03-02 17:40:43 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-03-02 17:40:48 +0100
commit2c24d48fd5c63f29ad88cfbc44a74d49906b567d (patch)
tree8c17f540258ff334faac8b69746b72c2c5686330 /pcr/stm32flash/PKGBUILD
parent02a1079f5f1cc46bd49135b10ce0347166bbb948 (diff)
downloadabslibre-2c24d48fd5c63f29ad88cfbc44a74d49906b567d.tar.gz
abslibre-2c24d48fd5c63f29ad88cfbc44a74d49906b567d.tar.bz2
abslibre-2c24d48fd5c63f29ad88cfbc44a74d49906b567d.zip
pcr: Add stm32flash
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr/stm32flash/PKGBUILD')
-rw-r--r--pcr/stm32flash/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/stm32flash/PKGBUILD b/pcr/stm32flash/PKGBUILD
new file mode 100644
index 000000000..a9620fa17
--- /dev/null
+++ b/pcr/stm32flash/PKGBUILD
@@ -0,0 +1,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/
+}