Skip to content

Commit

Permalink
update msp-flasher
Browse files Browse the repository at this point in the history
  • Loading branch information
taotieren committed Nov 16, 2024
1 parent b8bbfb6 commit 2f4ac6d
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aur-repo/msp-flasher/61-msp430uif.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ATTRS{idVendor}=="2047",ATTRS{idProduct}=="0010",MODE="0666"
ATTRS{idVendor}=="2047",ATTRS{idProduct}=="0013",MODE="0666"
ATTRS{idVendor}=="2047",ATTRS{idProduct}=="0014",MODE="0666"
ATTRS{idVendor}=="2047",ATTRS{idProduct}=="0203",MODE="0666"
ATTRS{idVendor}=="2047",ATTRS{idProduct}=="0204",MODE="0666"

48 changes: 48 additions & 0 deletions aur-repo/msp-flasher/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Maintainer: Peter Ivanov <ivanovp@gmail.com>

pkgname=msp-flasher
pkgver=1.03.20.00
pkgrel=2
pkgdesc="Flasher for TI MSP430 processor"
arch=('i686' 'x86_64')
url="http://www.ti.com/tool/msp430-flasher"
license=('GPL')
depends=('elfutils' 'libmpc' 'zlib' 'gcc-libs' 'glibc')
options=(!strip !emptydirs !libtool staticlibs)
PKGEXT=".pkg.tar"
if [ $CARCH = i686 ]; then
_installer_arch_infix=linux
elif [ $CARCH = x86_64 ]; then
_installer_arch_infix=linux-x64
fi
_installer=MSPFlasher-1_03_20_00-$_installer_arch_infix-installer.zip
_installer_run=MSPFlasher-1.3.20-$_installer_arch_infix-installer.run
source_i686=("http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP430Flasher/1_03_20_00/exports/$_installer")
source_x86_64=("http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP430Flasher/1_03_20_00/exports/$_installer")
source=("61-msp430uif.rules")
_install_dir=/opt/ti/$pkgname

sha1sums=('c746439f29904c9bb47eecabd12b31abdfc8934d')
sha1sums_i686=('792f88f92bcf8386865367ea5c8f12d177eb3d28')
sha1sums_x86_64=('792f88f92bcf8386865367ea5c8f12d177eb3d28')

build() {
chmod +x $_installer_run
}

package() {
msg "Running TI's installer..."
${srcdir}/$_installer_run --mode unattended --prefix $pkgdir$_install_dir
msg "Correcting directory permissions..."
find $pkgdir$_install_dir -type d -print0|xargs -0 chmod 755

mkdir -p $pkgdir/usr/lib
mkdir -p $pkgdir/usr/bin
ln -s ../../opt/ti/msp-flasher/libmsp430.so $pkgdir/usr/lib/
ln -s ../../opt/ti/msp-flasher/MSP430Flasher $pkgdir/usr/bin/

mkdir -p $pkgdir/etc/udev/rules.d
cp ${srcdir}/61-msp430uif.rules $pkgdir/etc/udev/rules.d/
}

# vim:set sts=2 ts=2 sw=2 et:
7 changes: 7 additions & 0 deletions aur-repo/msp-flasher/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
maintainers:
- github: taotieren
pre_build_script: aur_pre_build(maintainers=['ivanovp'])
post_build: aur_post_build
update_on:
- source: aur
github: msp-flasher
9 changes: 9 additions & 0 deletions aur-repo/msp-flasher/msp-flasher.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
post_install() {
echo "
Add /opt/ti/msp-flasher to your PATH!
"
}

post_upgrade() {
post_install
}
1 change: 1 addition & 0 deletions aur-repo/msp-flasher/msp-flasher.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export PATH=$PATH:/opt/ti/msp-flasher
5 changes: 5 additions & 0 deletions aur-repo/msp-flasher/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

mksrcinfo
git add -f .SRCINFO
exit 0

0 comments on commit 2f4ac6d

Please sign in to comment.