summaryrefslogtreecommitdiffstats
path: root/extra/lshw/Pkgfile
blob: 987a389a696a439f99072f5683c999a1784b94ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Description: Liste votre materiel et ses specificites
# URL: http://ezix.org/project/wiki/HardwareLiSter
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: atk, expat, fontconfig, freetype, glib, gtk, libpng, pango

name=lshw
version=B.02.14
release=1
source=(http://ezix.org/software/files/$name-$version.tar.gz \
lshw.png \
lshw.svg \
abi_stdlib.diff
lshw.desktop lshw-gcc-4.5.patch)

build() {
cd $name-$version
	patch -Np0 -i ../abi_stdlib.diff
	patch -Np1 -i ../lshw-gcc-4.5.patch
	sed -i 's@-g -Wall@-g -Wall -O2 -march=i686 -pipe@g' src/Makefile
	sed -i 's@-g -Wall@-g -Wall -O2 -march=i686 -pipe@g' src/core/Makefile
	sed -i 's@-g -Wall@-g -Wall -O2 -march=i686 -pipe@g' src/gui/Makefile
	make MANDIR=/usr/share/man
	make MANDIR=/usr/share/man gui
	make DESTDIR=$PKG MANDIR=/usr/share/man install
	make DESTDIR=$PKG MANDIR=/usr/share/man install-gui
	mkdir -p $PKG/usr/share/icons/hicolor/{48x48,scalable}/apps
	install -m644 ../$name.png $PKG/usr/share/icons/hicolor/48x48/apps/
	install -m644 ../$name.svg $PKG/usr/share/icons/hicolor/scalable/apps/
	mkdir -p $PKG/usr/share/applications
	install -m644 ../$name.desktop $PKG/usr/share/applications/
}