UEFITool: update to A68, adopt.

This commit is contained in:
0x5c 2024-04-09 01:12:58 -04:00 committed by classabbyamp
parent 59ea4ca40c
commit 3ff72a610d
2 changed files with 30 additions and 19 deletions

View File

@ -0,0 +1,21 @@
diff --git a/common/filesystem.cpp b/common/filesystem.cpp
index b2b8d65b4..5287a0c83 100644
--- a/common/filesystem.cpp
+++ b/common/filesystem.cpp
@@ -75,6 +75,9 @@ UString getAbsPath(const UString & path)
#else
#include <unistd.h>
#include <stdlib.h>
+#if !defined(ACCESSPERMS)
+#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
+#endif
bool isExistOnFs(const UString & path)
{
struct stat buf;
@@ -103,4 +106,4 @@ UString getAbsPath(const UString & path) {
return UString(abs);
return path;
}
-#endif
\ No newline at end of file
+#endif

View File

@ -1,27 +1,17 @@
# Template file for 'UEFITool'
pkgname=UEFITool
version=A56
version=A68
revision=1
build_wrksrc="UEFITool"
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="qt5-declarative-devel"
build_style=cmake
hostmakedepends="qt6-base qt6-tools"
makedepends="qt6-declarative-devel"
short_desc="UEFI firmware image viewer and editor"
maintainer="Kacper Słomiński <kacper.slominski72@gmail.com>"
maintainer="0x5c <dev@0x5c.io>"
license="BSD-2-Clause"
homepage="https://github.com/LongSoft/UEFITool/"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=b9047c1667ac3e62936debc387f5b88cf90185556e3451d82cbe38d08beeaabd
distfiles="https://github.com/LongSoft/UEFITool/archive/${version}.tar.gz"
checksum=aa4bc52105ab83e5b094de9b54b31d52a30ae1c0f3f1ce7930088fc412efe900
do_install() {
vbin UEFITool uefitool
vmkdir usr/share/applications
vinstall uefitool.desktop 644 usr/share/applications
local size
for size in 16 32 48 64 128 256 512; do
vinstall icons/uefitool_${size}x${size}.png \
644 usr/share/icons/hicolor${size}x${size}/apps uefitool.png
done
vinstall icons/uefitool_128x128.png 644 usr/share/pixmaps uefitool.png
vlicense ../LICENSE.md
post_install() {
vlicense LICENSE.md
}