hardinfo: fix x86 build.
This commit is contained in:
parent
76e29e161f
commit
26dec8dfe1
|
@ -2,6 +2,8 @@
|
|||
pkgname=hardinfo
|
||||
version=0.5.1
|
||||
revision=2
|
||||
lib32disabled=yes
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config which"
|
||||
makedepends="gtk+-devel libsoup-devel desktop-file-utils"
|
||||
depends="desktop-file-utils"
|
||||
|
@ -12,16 +14,16 @@ homepage="http://hardinfo.berlios.de/HomePage"
|
|||
distfiles="http://pkgs.fedoraproject.org/repo/pkgs/hardinfo/hardinfo-${version}.tar.bz2/6fb38992e140f2fab16518ae1f38e188/hardinfo-${version}.tar.bz2"
|
||||
checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a
|
||||
|
||||
do_build() {
|
||||
pre_configure() {
|
||||
sed -i 's|/usr/lib64|/usr/lib|' configure
|
||||
./configure --prefix=/usr
|
||||
sed -i 's|lib64|lib|' binreloc.c
|
||||
sed -i 's|{ DB_PREFIX "debian_version", "deb" },|{ DB_PREFIX "hardinfo.distro", "Void" },{ DB_PREFIX "debian_version", "deb" },|' computer.h
|
||||
make ${makejobs}
|
||||
}
|
||||
|
||||
do_build() {
|
||||
make libdir="${XBPS_CROSS_BASE}/usr/lib" ${makejobs}
|
||||
}
|
||||
do_install() {
|
||||
make DESTDIR=${DESTDIR} install
|
||||
make libdir="${XBPS_CROSS_BASE}/usr/lib" DESTDIR=${DESTDIR} install
|
||||
vmkdir etc
|
||||
echo "Void Linux" > ${DESTDIR}/etc/hardinfo.distro
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue