Package Details: libreelec-usb-sd-creator-git r1.d5922e2-2

Git Clone URL: https://aur.archlinux.org/libreelec-usb-sd-creator-git.git (read-only, click to copy)
Package Base: libreelec-usb-sd-creator-git
Description: A simple GUI for creating LibreELEC USB/SD card installation media
Upstream URL: https://github.com/LibreELEC/usb-sd-creator
Licenses: GPLv2
Submitter: gonciarz
Maintainer: gonciarz
Last Packager: gonciarz
Votes: 0
Popularity: 0.000000
First Submitted: 2023-02-06 01:49 (UTC)
Last Updated: 2023-02-08 08:58 (UTC)

Latest Comments

tmn505 commented on 2026-01-11 14:03 (UTC)

qmake alone doesn't initialize some variables that's why it fails, this fixes the issues:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,39 @@
 # Maintainer: Robert Gonciarz <gonciarz@gmail.com> 
 # all credits for LibreELEC team

-pkgbase=libreelec-usb-sd-creator-git
-pkgname=('libreelec-usb-sd-creator-git')
-_gitname=('usb-sd-creator')
-pkgver=r1.d5922e2
-pkgrel=3
-pkgdesc="A simple GUI for creating LibreELEC USB/SD card installation media"
+pkgname=libreelec-usb-sd-creator-git
+pkgver=r332.ab7b3c5
+pkgrel=1
+pkgdesc='A simple GUI for creating LibreELEC USB/SD card installation media'
 arch=('i686' 'x86_64')
-url="https://github.com/LibreELEC/usb-sd-creator"
-license=('GPLv2')
-makedepends=('git' 'dos2unix' 'qt6-tools' 'qt6-base')
-source=("git+https://github.com/LibreELEC/usb-sd-creator")
-md5sums=('SKIP')
+url='https://github.com/LibreELEC/usb-sd-creator'
+license=('GPL-2.0-or-later')
+makedepends=('cmake' 'git' 'qt6-tools' 'qt6-base')
+source=("git+${url}.git"
+        'project.patch')
+sha256sums=('SKIP'
+            '5d4d51fd413b2af92ce65cb7646d89cea025f829b18cac2251ff3df2b1ef234b')

 pkgver() {
-  cd "${_gitname%-git}"
+  cd "${url##*/}"
   printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
 }

 prepare() {
-    cd "${_gitname%-git}"
-    dos2unix creator.pro
-    patch --forward --strip=1 --input="${srcdir}/../project.patch"
+    cd "${url##*/}"
+    patch --forward --strip=1 --input="${srcdir}/project.patch"
 }

 build() {
-  cd "${_gitname%-git}"
-  QT_PATH=/usr/lib/qt6
-  export PATH=$QT_PATH/bin:$PATH
-  lrelease creator.pro
-  qmake creator.pro
-  make -j4
+  cd "${url##*/}"
+  cmake -B build -D CMAKE_INSTALL_PREFIX=/usr
+  cmake --build build
 }

 package() {
-  cd "${_gitname%-git}"
-  install -Dm755 LibreELEC.USB-SD.Creator.Linux-bit.bin "${pkgdir}"/usr/bin/libreelec-usb-sd-creator
+  cd "${url##*/}"
+  DESTDIR="${pkgdir}" cmake --install build
+  mv \
+    "${pkgdir}/usr/bin/LibreELEC.USB-SD.Creator.Linux.bin" \
+    "${pkgdir}/usr/bin/${pkgname%-*}"
 }
-

jackarc commented on 2024-09-13 15:10 (UTC)

Build Error: :(

main.cpp: In function 'int main(int, char**)': main.cpp:97:41: error: 'BUILD_VERSION' was not declared in this scope; did you mean 'QT_VERSION'? 97 | qDebug() << "App data: Version:" << BUILD_VERSION << ", Build date:" << BUILD_DATE; | ^ | QT_VERSION main.cpp:97:77: error: 'BUILD_DATE' was not declared in this scope 97 | qDebug() << "App data: Version:" << BUILD_VERSION << ", Build date:" << BUILD_DATE; | ^~ compiling diskwriter_unix.cpp make: *** [Makefile:1114: .generated_files/main.o] Error 1 make: *** Waiting for unfinished jobs.... ==> ERROR: A failure occurred in build(). Aborting...

JoaoMachado commented on 2023-02-17 00:32 (UTC) (edited on 2023-02-17 00:33 (UTC) by JoaoMachado)

I get the following error when running from the command line when it crashes.

sudo libreelec-usb-sd-creator [sudo] password for joao: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' Segmentation fault