EmptyEpsilon: fix cleanup

This commit is contained in:
Đoàn Trần Công Danh 2021-09-19 18:34:19 +07:00
parent 91425c9249
commit 7f84757b25
2 changed files with 15 additions and 8 deletions

View File

@ -1,9 +1,9 @@
this fixes the serial driver on musl as well as on ppc
diff --git src/hardware/serialDriver.cpp src/hardware/serialDriver.cpp
diff --git a/EmptyEpsilon/src/hardware/serialDriver.cpp a/EmptyEpsilon/src/hardware/serialDriver.cpp
index 0bb0228..d935c63 100644
--- a/src/hardware/serialDriver.cpp
+++ b/src/hardware/serialDriver.cpp
--- a/EmptyEpsilon/src/hardware/serialDriver.cpp
+++ b/EmptyEpsilon/src/hardware/serialDriver.cpp
@@ -2,20 +2,31 @@
#ifdef __WIN32__
#include <windows.h>
@ -154,10 +154,10 @@ index 0bb0228..d935c63 100644
FILE* f = fopen(("/sys/class/tty/" + port + "/device/modalias").c_str(), "rt");
if (!f)
return "";
diff --git src/hardware/serialDriver.h src/hardware/serialDriver.h
diff --git a/EmptyEpsilon/src/hardware/serialDriver.h a/EmptyEpsilon/src/hardware/serialDriver.h
index 29cc0b5..9513457 100644
--- a/src/hardware/serialDriver.h
+++ b/src/hardware/serialDriver.h
--- a/EmptyEpsilon/src/hardware/serialDriver.h
+++ b/EmptyEpsilon/src/hardware/serialDriver.h
@@ -14,7 +14,7 @@ private:
#ifdef __WIN32__
HANDLE handle;

View File

@ -6,9 +6,11 @@ _ver_major="${version%%.*}"
_ver_minor="${version%.*}"
_ver_minor="${_ver_minor#*.}"
_ver_patch="${version##*.}"
wrksrc="EmptyEpsilon-EE-${version}"
create_wrksrc=yes
build_style=cmake
configure_args="-DSERIOUS_PROTON_DIR=$XBPS_BUILDDIR/SeriousProton-EE-${version}
build_wrksrc="EmptyEpsilon"
configure_args="
-DSERIOUS_PROTON_DIR=$XBPS_BUILDDIR/$pkgname-$version/SeriousProton
-DCPACK_PACKAGE_VERSION=${version}
-DCPACK_PACKAGE_VERSION_MAJOR=$_ver_major
-DCPACK_PACKAGE_VERSION_MINOR=$_ver_minor
@ -23,3 +25,8 @@ distfiles="https://github.com/daid/EmptyEpsilon/archive/EE-${version}.tar.gz
https://github.com/daid/SeriousProton/archive/EE-${version}.tar.gz>SP-${version}.tar.gz"
checksum="c1c4f11fefe1afac6076c795e8785c7507a297ba3f7f2be9ed30c97b1e93cb24
62ab03dc904bd10f017fff338e55ec97c86f0bc3903a18d6c44285b86776a2d7"
post_extract() {
mv EmptyEpsilon* EmptyEpsilon
mv SeriousProton* SeriousProton
}