Created
March 2, 2019 19:07
-
-
Save DarkShadow44/eedad25a98fb83b9726d349e51f1426e to your computer and use it in GitHub Desktop.
i-nex PKGBUILD with fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c5d17a1539c5dc9986884d64bad4ab0a87655c6b Mon Sep 17 00:00:00 2001 | |
From: Fabian Maurer <dark.shadow4@web.de> | |
Date: Sat, 2 Mar 2019 20:00:47 +0100 | |
Subject: [PATCH] Fix compilation | |
--- | |
I-Nex/i-nex/.src/Finfosys.class | 7 ++++--- | |
1 file changed, 4 insertions(+), 3 deletions(-) | |
diff --git a/I-Nex/i-nex/.src/Finfosys.class b/I-Nex/i-nex/.src/Finfosys.class | |
index 411da89..f416183 100644 | |
--- a/I-Nex/i-nex/.src/Finfosys.class | |
+++ b/I-Nex/i-nex/.src/Finfosys.class | |
@@ -322,6 +322,7 @@ End | |
Public Sub System() | |
Dim hostname, arch, gcc, timezone, xorg_version, glx_version As String | |
Dim SCREENFETCH_P As Process | |
+ Dim sLine2 As String | |
SCREENFETCH_P = Exec ["" & ChkPrm.ChkExecDir("bash") & ""] For Write | |
Write #SCREENFETCH_P, File.Load("Data/screenfetch-dev") | |
SCREENFETCH_P.Wait | |
@@ -332,9 +333,9 @@ Public Sub System() | |
Shell "timedatectl status | grep \"Time zone:\" | cut -d \":\" -f 2 | cut -d \"(\" -f 1" Wait To timezone | |
Endif | |
'Detect heap size | |
- For Each sLine In Split(File.Load("/proc/self/maps"), "\n") | |
- If InStr(sLine, "[heap]") Then | |
- aScan = Scan(sLine, "*-* *") | |
+ For Each sLine2 In Split(File.Load("/proc/self/maps"), "\n") | |
+ If InStr(sLine2, "[heap]") Then | |
+ aScan = Scan(sLine2, "*-* *") | |
Label176.Text = "Heap size is " & Format(Val("&H" & aScan[1] & "&") - Val("&H" & aScan[0] & "&"), "#,##0") & " bytes." | |
Break | |
Endif | |
-- | |
2.21.0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer : Vassilis Palassopoulos <palasso [at] gmail [dot] com> | |
# Based on the PKGBUILD from eloaders <eloaders at linux dot pl> | |
pkgname=i-nex | |
pkgver=7.6.0 | |
pkgrel=4 | |
pkgdesc="System information tool like hardinfo, sysinfo" | |
arch=('i686' 'x86_64') | |
url="http://i-nex.linux.pl/" | |
license=('LGPL3') | |
depends=('gambas3-runtime' | |
'gambas3-gb-image' | |
'gambas3-gb-form' | |
'gambas3-gb-desktop' | |
'gambas3-gb-qt5' | |
'gambas3-gb-desktop-x11' | |
'python2' | |
'libcpuid' | |
'lsb-release' | |
'curl' | |
'pastebinit' | |
'procps-ng') | |
makedepends=('gambas3-devel' 'gcc' 'imagemagick') | |
source=("https://github.com/i-nex/I-Nex/archive/${pkgver}.tar.gz" | |
"fix-compilation.patch") | |
sha256sums=('ad18bb753daa2d17432a0211aef7b19bc1416d5deea4a14a751802a3da998ea8' | |
'17b46233b365577f48a79bde7b3a435414f3e128d71172c4e292372500c04b85') | |
conflicts=('i-nex-git') | |
backup=('etc/i-nex/Database/i2c/devices.json' | |
'etc/i-nex/Database/A6.json' | |
'etc/i-nex/Database/amd.json' | |
'etc/i-nex/Database/atom.json' | |
'etc/i-nex/Database/i3.json' | |
'etc/i-nex/Database/i5.json' | |
'etc/i-nex/Database/i7.json' | |
'etc/i-nex/Database/intel_Core_2_Duo.json' | |
'etc/i-nex/Database/intel.json' | |
'etc/i-nex/Database/Opteron.json' | |
'etc/i-nex/Database/Xeon.json') | |
prepare() { | |
cd "${srcdir}/I-Nex-${pkgver}" | |
# Fix compile error | |
patch -Np1 < "$srcdir/fix-compilation.patch" | |
sed -i 's|python3$|python2|' pastebinit | |
sed -i -e 's|^STATIC.*|STATIC = false|' i-nex.mk | |
sed -i -e 's|^UDEV_RULES_DIR.*|UDEV_RULES_DIR = /usr/lib/udev/rules.d|' i-nex.mk | |
cd "I-Nex" | |
autoreconf -i | |
} | |
build() { | |
cd "${srcdir}/I-Nex-${pkgver}" | |
cd "I-Nex" | |
./configure --prefix=/usr | |
cd .. | |
MAGICK_OCL_DEVICE=OFF make -j1 | |
} | |
package() { | |
cd "${srcdir}/I-Nex-${pkgver}" | |
MAGICK_OCL_DEVICE=OFF make -j1 DESTDIR="${pkgdir}/" install | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment