Package Details: sam-ba 3.3.1-2

Git Clone URL: https://aur.archlinux.org/sam-ba.git (read-only, click to copy)
Package Base: sam-ba
Description: Atmel SAM Boot Assistant
Upstream URL: https://github.com/atmelcorp/sam-ba
Licenses: GPL2
Submitter: novenary
Maintainer: None
Last Packager: jvreeland
Votes: 2
Popularity: 0.000000
First Submitted: 2017-03-12 21:57 (UTC)
Last Updated: 2020-10-07 17:49 (UTC)

Latest Comments

1 2 3 Next › Last »

ogden commented on 2023-04-01 00:37 (UTC)

@quenyen @jvreeland Microchip has deprecated the sam-ba github repo and deleted all git history :sad:. Here is a patch file which installs the precompiled sam-ba bin provided from Microchip's website:

From 998d67a4b28ea99478b54ee62dacf321aafad0a1 Mon Sep 17 00:00:00 2001
From: ogden <0gd3n@pm.me>
Date: Fri, 31 Mar 2023 17:30:20 -0700
Subject: [PATCH] Update to precompiled bins provided by Microchip v3.7

---
 .SRCINFO                                   | 16 +++------
 0001-Dont-install-thirdparty-libs.patch    | 26 ---------------
 0002-Dont-rely-on-applicationDirPath.patch | 27 ---------------
 0003-Use-newer-qt-version.patch            | 11 ------
 PKGBUILD                                   | 39 +++++-----------------
 5 files changed, 14 insertions(+), 105 deletions(-)
 delete mode 100644 0001-Dont-install-thirdparty-libs.patch
 delete mode 100644 0002-Dont-rely-on-applicationDirPath.patch
 delete mode 100644 0003-Use-newer-qt-version.patch

diff --git a/.SRCINFO b/.SRCINFO
index e64b7e7..9ad8cfa 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,17 @@
 pkgbase = sam-ba
    pkgdesc = Atmel SAM Boot Assistant
-   pkgver = 3.3.1
-   pkgrel = 2
+   pkgver = 3.7
+   pkgrel = 1
    url = https://github.com/atmelcorp/sam-ba
    arch = x86_64
    license = GPL2
    makedepends = qt5-tools
-   makedepends = clang
+   makedepends = patchelf
    depends = qt5-base
    depends = qt5-serialport
    depends = qt5-declarative
-   source = sam-ba-3.3.1.tar.gz::https://github.com/atmelcorp/sam-ba/archive/v3.3.1.tar.gz
-   source = 0001-Dont-install-thirdparty-libs.patch
-   source = 0002-Dont-rely-on-applicationDirPath.patch
-   source = 0003-Use-newer-qt-version.patch
-   md5sums = e435ec4416dcfb013ab8a07f95ef0ba4
-   md5sums = 7115eaa32335e755fe4b17277a15ca7e
-   md5sums = 1fd871ae02809fcbc3095c169f59ce01
-   md5sums = f938ade40a4b559f6f70cf3929433bbb
+   source = sam-ba-3.7.tar.gz::https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/ProductDocuments/SoftwareLibraries/Firmware/sam-ba_v3.7-linux_x86_64.tar.gz
+   md5sums = a65bff1cdfea45a5b009f120e89db4d4

 pkgname = sam-ba

diff --git a/0001-Dont-install-thirdparty-libs.patch b/0001-Dont-install-thirdparty-libs.patch
deleted file mode 100644
index ba3580b..0000000
--- a/0001-Dont-install-thirdparty-libs.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-diff --git a/dist/dist.pro b/dist/dist.pro
-index ac481c9..2d2baac 100644
---- a/dist/dist.pro
-+++ b/dist/dist.pro
-@@ -32,18 +32,18 @@ unix:{
-       $$[QT_INSTALL_LIBS]/libQt5Qml.so.5 \
-       $$[QT_INSTALL_LIBS]/libQt5Quick.so.5 \
-       $$[QT_INSTALL_LIBS]/libQt5SerialPort.so.5
--  INSTALLS += qtlibs
-+  # INSTALLS += qtlibs
-
-   otherlibs.path = /lib
-   otherlibs.files = \
-       $$[QT_INSTALL_LIBS]/libicudata.so.$$ICU_VERSION \
-       $$[QT_INSTALL_LIBS]/libicui18n.so.$$ICU_VERSION \
-       $$[QT_INSTALL_LIBS]/libicuuc.so.$$ICU_VERSION
--  INSTALLS += otherlibs
-+  # INSTALLS += otherlibs
-
-   qmlmodules.path = /qml
-   qmlmodules.files = $$[QT_INSTALL_QML]/QtQuick.2
--  INSTALLS += qmlmodules
-+  # INSTALLS += qmlmodules
- }
- else:win32:{
-   qtlibs.path = /
diff --git a/0002-Dont-rely-on-applicationDirPath.patch b/0002-Dont-rely-on-applicationDirPath.patch
deleted file mode 100644
index d7d6b58..0000000
--- a/0002-Dont-rely-on-applicationDirPath.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-diff --git a/src/tools/sambaengine.cpp b/src/tools/sam-ba/sambaengine.cpp
-index 8f36080..2fda3c2 100644
---- a/src/tools/sam-ba/sambaengine.cpp
-+++ b/src/tools/sam-ba/sambaengine.cpp
-@@ -26,9 +26,6 @@ SambaEngine::SambaEngine(QObject *parent)
-   QObject::connect(&m_qmlEngine, &QQmlEngine::warnings,
-                    this, &SambaEngine::engineWarnings);
-
--  // add import path
--  m_qmlEngine.addImportPath(QCoreApplication::applicationDirPath() + "/qml");
--
-   // create metadata object
-   m_metadata = new SambaMetadata(this);
- }
-diff --git a/src/tools/sam-ba/sambametadata.cpp b/src/tools/sambametadata.cpp
-index 1c65370..577303d 100644
---- a/src/tools/sam-ba/sambametadata.cpp
-+++ b/src/tools/sam-ba/sambametadata.cpp
-@@ -122,7 +122,7 @@ void SambaMetadata::loadAllMetadata()
- #endif
-       paths = QString::fromLatin1(envImportPath).split(pathSep, QString::SkipEmptyParts);
-   }
--  paths << (QCoreApplication::applicationDirPath() + "/metadata");
-+  paths << "/usr/share/sam-ba/metadata";
-
-   foreach (QString path, paths) {
-       QDir metadataDir(path);
diff --git a/0003-Use-newer-qt-version.patch b/0003-Use-newer-qt-version.patch
deleted file mode 100644
index e4d314c..0000000
--- a/0003-Use-newer-qt-version.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/dist/dist.pro
-+++ b/dist/dist.pro
-@@ -2,7 +2,7 @@
-
- # map Qt version to ICU versions
- equals(QT_MAJOR_VERSION, 5) {
--  equals(QT_MINOR_VERSION, 9): ICU_VERSION = 56
-+  equals(QT_MINOR_VERSION, 15): ICU_VERSION = 67
- }
- isEmpty(ICU_VERSION) {
-   error(Unknown QT version)
diff --git a/PKGBUILD b/PKGBUILD
index fcfd6cc..39152d1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,55 +1,34 @@
 # Maintainer: Justin Vreeland <vreeland.justin@gmail.com>
 # Contributor: Streetwalrus <streetwalrus@codewalr.us>
 pkgname=sam-ba
-pkgver=3.3.1
-pkgrel=2
+pkgver=3.7
+pkgrel=1
 pkgdesc="Atmel SAM Boot Assistant"
 arch=('x86_64')
 url="https://github.com/atmelcorp/sam-ba"
 license=('GPL2')
 depends=('qt5-base' 'qt5-serialport' 'qt5-declarative')
-makedepends=('qt5-tools' 'clang')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/atmelcorp/sam-ba/archive/v$pkgver.tar.gz"
-        "0001-Dont-install-thirdparty-libs.patch"
-        "0002-Dont-rely-on-applicationDirPath.patch"
-        "0003-Use-newer-qt-version.patch"
-        )
-md5sums=('e435ec4416dcfb013ab8a07f95ef0ba4'
-         '7115eaa32335e755fe4b17277a15ca7e'
-         '1fd871ae02809fcbc3095c169f59ce01'
-         'f938ade40a4b559f6f70cf3929433bbb')
+makedepends=('qt5-tools' 'patchelf')
+source=("$pkgname-$pkgver.tar.gz::https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/ProductDocuments/SoftwareLibraries/Firmware/sam-ba_v$pkgver-linux_x86_64.tar.gz")
+md5sums=('a65bff1cdfea45a5b009f120e89db4d4')

 prepare() {
-  cd "${srcdir}/$pkgname-$pkgver"
+  cd "${srcdir}/${pkgname}_v${pkgver}-linux_x86_64"

-  patch -Np1 -i ../0001-Dont-install-thirdparty-libs.patch
-  patch -Np1 -i ../0002-Dont-rely-on-applicationDirPath.patch
-  patch -Np1 -i ../0003-Use-newer-qt-version.patch
-  sed -i -e "s/ jlink//" src/plugins/connection/connection.pro
+  patchelf --remove-rpath sam-ba
 }

 build() {
-  cd "${srcdir}/sam-ba-$pkgver"
-
-  mkdir -p build
-  cd build
-
-  qmake ../sam-ba.pro
-  make
+  cd "${srcdir}"
 }

 package() {
-  cd "${srcdir}/sam-ba-$pkgver/build"
-
-  make install INSTALL_ROOT="$PWD/install"
-
-  cd install
+  cd "${srcdir}/${pkgname}_v${pkgver}-linux_x86_64"

   mkdir -p ${pkgdir}/usr/bin
   cp sam-ba ${pkgdir}/usr/bin

   mkdir -p ${pkgdir}/usr/lib/qt/qml
-  cp -d lib/* ${pkgdir}/usr/lib
   cp -r qml/SAMBA ${pkgdir}/usr/lib/qt/qml

   mkdir -p ${pkgdir}/usr/share/doc/sam-ba
--
2.38.1

jpkotta commented on 2020-09-28 03:18 (UTC)

@TomCatT: Look at the 0003-Use-newer-qt-version.patch file and update it to match your installed QT and ICU versions. Currently it's QT 5.15 and ICU 67.

TomCatT commented on 2020-09-24 22:31 (UTC)

Where in the code does it tell it to check for QT version? I want to '#' it out because I have no idea how to get the QT vesrson other then what qmake displays.

jvreeland commented on 2020-03-17 22:59 (UTC)

sorry about that wrote out a blank patch when instead of the new version. Should be fixed now.

jpkotta commented on 2020-03-17 15:55 (UTC)

1) Your .SRCINFO seems out of date, it doesn't have clang as a makedep.

2) The package contains QT libs, which conflict with the actual QT packages, e.g. "sam-ba: /usr/lib/libQt5Core.so.5 exists in filesystem (owned by qt5-base)".

novenary commented on 2019-06-16 14:13 (UTC)

libclang.so is part of the clang package in [extra]. I'm not sure why this would depend on it, but if it really does then clang should be added as a dependency.

TomCatT commented on 2019-06-16 13:56 (UTC)

Before I installed this I had to grab libclang.so.8. It was an easy fix just search for that library in AUR and your good to go.

Is there a way you can add a checker looking for that library and if it's not there, have it download it for us?

jpkotta commented on 2018-12-17 17:13 (UTC)

@azagthoth

Edit the "use newer QT" patch, then run updpkgsums. I just updated and it looks like QT is version 5.12 and ICU is version 63.

azagthoth commented on 2018-12-15 19:12 (UTC) (edited on 2018-12-15 19:13 (UTC) by azagthoth)

when I try to build this package I get:

... cd dist/ && ( test -e Makefile || /usr/bin/qmake -o Makefile /home/jonas/Downloads/AUR_Builds/sam-ba/src/sam-ba-3.2.3/dist/dist.pro ) && make -f Makefile Project ERROR: Unknown QT version make: *** [Makefile:98: sub-dist-make_first] Error 3 ==> ERROR: A failure occurred in build(). Aborting...

How can I fix this or make it use an older version of QT?