summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChih-Hsuan Yen2020-11-18 01:20:03 +0800
committerChih-Hsuan Yen2020-11-18 01:20:03 +0800
commit554ec76d54d3e41b0b18d61063fd1c43d9dfe8cc (patch)
tree7fe7a051d85b8347fce407f0344c1249d768645d /PKGBUILD
parent86424756418c3a509ba53886d255bbe6b9f23fd4 (diff)
downloadaur-554ec76d54d3e41b0b18d61063fd1c43d9dfe8cc.tar.gz
Update to 3.15.1.1 + various minor fixes
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 12 insertions, 20 deletions
diff --git a/PKGBUILD b/PKGBUILD
index eb79f680f2d0..349fe2992994 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,38 +3,29 @@
# PKGBUILD copied from https://github.com/greigdp/msp430-mspds
# Contributor: Alexei Colin <ac@alexeicolin.com>
pkgname=mspds
-pkgver=3.13.000.001
-pkgrel=2
+pkgver=3.15.1.001
+_shortver=${pkgver/00/}
+pkgrel=1
pkgdesc="MSP430 Debug Stack. Contains a dynamic link library as well as embedded firmware that runs on the MSP-FET430UIF or the eZ430 emulators."
arch=('i686' 'x86_64')
-url="http://www.ti.com/tool/mspds"
-# Licenses were found in "Manifest MSPDebugStack OS Package.pdf" from the mspds source archive.
-license=('custom:TI BSD' 'custom:IAR BSD' 'custom: TI TSPA')
-group=('msp430')
-depends=('hidapi' 'boost')
-makedepends=('unzip' 'dos2unix')
+url="https://www.ti.com/tool/mspds"
+# Licenses were found in "MSPDebugStackOpenSourcePackage_manifest.html" from the mspds source archive.
+license=('custom:TI BSD' 'custom:IAR BSD' 'custom:TI TSPA')
+groups=('msp430')
+depends=('boost-libs' 'hidapi' 'libusb')
+makedepends=('dos2unix' 'boost')
optdepends=('mspdebug')
-_release='slac460y'
-_releasefile="${_release}.zip"
-noextract=("${_releasefile}")
-source=("http://www.ti.com/lit/sw/${_release}/${_releasefile}"
+source=("https://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPDS/${pkgver//./_}/export/MSPDebugStack_OS_Package_${_shortver//./_}.zip"
'hidapi.patch')
-sha256sums=('d3c5a50444d8d6ab9456fecf2a8ebbc9a391fa9447120d20aaa76c62bc5cc9b8'
+sha256sums=('e3a59a98c43de7a92e5814d8c3304026165e6d2551e60acaca1f08c6b1a4bac8'
'aa2bdb86118a84423f3df752f48d90d2ebcb1e1bbc5293bdfd7fb1c62f765a34')
prepare() {
- unzip ${_releasefile}
find "${srcdir}" -type f -exec dos2unix -q '{}' \;
# This hidapi patch allows us to build mspds from the hidapi Archlinux package rather than the v0.7 source.
patch -p1 < hidapi.patch
sed -i 's/^\/\/\(#define FPGA_UPDATE\)/\1/' $srcdir/DLL430_v3/src/TI/DLL430/UpdateManagerFet.cpp
- ## resolve conflict between std::chrono and boost::chrono
- grep -Rl '(chrono::' $srcdir | xargs -- sed -i 's/(chrono::/(std::chrono::/'
- ## resolve conflict between std::ofstream and boost::chrono
- egrep -Rl '\sofstream' $srcdir | xargs -- sed -i 's/ofstream/std::ofstream/'
- ## boost::asio::io_service was renamed to boost::asio::io_context in 1.66
- egrep -Rl '::io_service' $srcdir | xargs -- sed -i 's/::io_service/::io_context/'
}
build() {
@@ -44,4 +35,5 @@ build() {
package() {
install -Dm644 "$srcdir/libmsp430.so" "$pkgdir/usr/lib/libmsp430.so"
+ install -Dm644 "$srcdir/MSPDebugStackOpenSourcePackage_manifest.html" -t "$pkgdir/usr/share/licenses/$pkgname"
}