Package Details: stm32flash 0.6-3

Git Clone URL: https://aur.archlinux.org/stm32flash.git (read-only, click to copy)
Package Base: stm32flash
Description: Open source flash program for the STM32 ARM processors using the ST serial bootloader over UART or I2C
Upstream URL: https://sourceforge.net/projects/stm32flash/
Licenses: GPL2
Conflicts: stm32flash-git
Provides: stm32flash
Submitter: andreagi
Maintainer: andreagi
Last Packager: andreagi
Votes: 16
Popularity: 0.052687
First Submitted: 2016-08-27 07:39
Last Updated: 2021-03-02 20:37

Dependencies (0)

Required by (3)

Sources (1)

Latest Comments

nmaggioni commented on 2021-03-02 20:23

@lesto:

diff --git a/PKGBUILD b/PKGBUILD
index aaed162..bac1ff7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,12 +14,13 @@ source=(http://downloads.sourceforge.net/project/stm32flash/$pkgname-$pkgver.tar
 sha512sums=('2d92ecf4f82b8a702b596cbf3c4ff594f67083f7dcec82c064555f73b47834b41a918efa1846e47fc8740ae63fa818b16dfb5b38fa242c17f465666a651eee3a')

 build() {
-  cd $pkgname
+  cd "$pkgname" || cd "$pkgname-$pkgver"
   make PREFIX=/usr
 }

 package() {
-  cd $pkgname
+
+  cd "$pkgname" || cd "$pkgname-$pkgver"
   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/

lesto commented on 2021-03-02 19:52

build() is broken for me:

PKGBUILD: line 17: cd: stm32flash: No such file or directory