From 5b10eb1740253ea189236fd59e36de7f25482881 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Sun, 4 Oct 2015 23:48:55 -0500 Subject: hardinfo: armv7h port --- libre/hardinfo/PKGBUILD | 9 ++++++--- libre/hardinfo/hardinfo-gnu89_inline.patch | 10 ++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 libre/hardinfo/hardinfo-gnu89_inline.patch diff --git a/libre/hardinfo/PKGBUILD b/libre/hardinfo/PKGBUILD index 27913f3f0..fd469778e 100644 --- a/libre/hardinfo/PKGBUILD +++ b/libre/hardinfo/PKGBUILD @@ -6,7 +6,7 @@ pkgname=hardinfo pkgver=0.5.1 pkgrel=6.parabola1 pkgdesc="A system information and benchmark tool (Parabola rebranded)" -arch=('i686' 'x86_64' 'mips64el') +arch=('i686' 'x86_64' 'armv7h') url="http://sourceforge.net/projects/hardinfo.berlios/" license=('GPL2') depends=('gtk2' 'libsoup') @@ -14,14 +14,17 @@ options=('!emptydirs') replaces=(${pkgname}-parabola) conflicts=(${pkgname}-parabola) source=(http://sourceforge.net/projects/hardinfo.berlios/files/${pkgname}-${pkgver}.tar.bz2 - fixsensors.patch hardinfo.distro) + fixsensors.patch hardinfo.distro + hardinfo-gnu89_inline.patch) sha1sums=('983f0445aa60e02156bc5a5eaedeffb30b8e4d64' 'd2151dce76dca238102937d0e15541f172bca530' - '9425e09191cd3a365a3afce57ca1973a6439fa57') + '9425e09191cd3a365a3afce57ca1973a6439fa57' + '861a60aa2bdc56f95f496383b80399167cfdf995') prepare() { cd ${pkgname}-${pkgver} patch -p1 -i "${srcdir}/fixsensors.patch" + patch -Np1 -i "${srcdir}/hardinfo-gnu89_inline.patch" sed -i 's|/usr/lib64|/usr/lib|' configure sed -i 's|lib64|lib|' binreloc.c sed -i 's|{ DB_PREFIX "debian_version", "deb" },|{ DB_PREFIX "hardinfo.distro", "parabola" },{ DB_PREFIX "debian_version", "deb" },|' computer.h diff --git a/libre/hardinfo/hardinfo-gnu89_inline.patch b/libre/hardinfo/hardinfo-gnu89_inline.patch new file mode 100644 index 000000000..eafb9903b --- /dev/null +++ b/libre/hardinfo/hardinfo-gnu89_inline.patch @@ -0,0 +1,10 @@ +--- hardinfo-0.5.1.orig/Makefile.in 2009-04-06 08:43:15.000000000 -0500 ++++ hardinfo-0.5.1/Makefile.in 2015-10-04 23:32:01.564864865 -0500 +@@ -1,6 +1,6 @@ + + CCFLAGS = -fPIC -pipe -Wall -g +-CFLAGS = $(GTK_CFLAGS) $(SOUP_CFLAGS) -I. ++CFLAGS = $(GTK_CFLAGS) $(SOUP_CFLAGS) -I. -std=gnu89 + CC = gcc $(ARCHOPTS) -g + CCSLOW = gcc -O0 -g + -- cgit v1.2.3-2-g168b