hardinfo: fix cross again
This commit is contained in:
parent
611ecda2b0
commit
a96e535de0
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'hardinfo'
|
# Template file for 'hardinfo'
|
||||||
pkgname=hardinfo
|
pkgname=hardinfo
|
||||||
version=0.5.1
|
version=0.5.1
|
||||||
revision=11
|
revision=12
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config which"
|
hostmakedepends="pkg-config which"
|
||||||
makedepends="gtk+-devel libsoup-devel desktop-file-utils"
|
makedepends="gtk+-devel libsoup-devel desktop-file-utils"
|
||||||
|
@ -15,11 +15,18 @@ checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
|
|
||||||
post_patch() {
|
post_patch() {
|
||||||
vsed -i -e "s|CC =.*|CC = $CC|" \
|
local _arch
|
||||||
-e "s|CCSLOW =.*|CCSLOW = $CC -O0|" \
|
_arch="${XBPS_TARGET_MACHINE%-*}"
|
||||||
|
if [ "$_arch" == aarch64 ]; then
|
||||||
|
_arch=armv8
|
||||||
|
fi
|
||||||
|
vsed -i -e "s|^CC =.*|CC = $CC|" \
|
||||||
|
-e "s|^CCSLOW =.*|CCSLOW = $CC -O0|" \
|
||||||
-e "s|-o hardinfo|$LDFLAGS &|" \
|
-e "s|-o hardinfo|$LDFLAGS &|" \
|
||||||
Makefile.in
|
Makefile.in
|
||||||
vsed -i "s|^LIBDIR=.*|LIBDIR=/usr/lib${XBPS_TARGET_WORDSIZE}|" configure
|
vsed -i -e "s|^LIBDIR=.*|LIBDIR=/usr/lib${XBPS_TARGET_WORDSIZE}|" \
|
||||||
|
-e "s|^PROC=.*|PROC=$_arch|" \
|
||||||
|
configure
|
||||||
vsed -i "s/\"lib\"/\"lib${XBPS_TARGET_WORDSIZE}\"/" binreloc.c
|
vsed -i "s/\"lib\"/\"lib${XBPS_TARGET_WORDSIZE}\"/" binreloc.c
|
||||||
vsed -i '/distro_db/a { "/etc/hardinfo.distro", "Void" },' \
|
vsed -i '/distro_db/a { "/etc/hardinfo.distro", "Void" },' \
|
||||||
computer.h
|
computer.h
|
||||||
|
|
Loading…
Reference in a new issue