blob: 968ba57d176e8ab4dd3e95fbf24efb8cb691b166 (
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
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hardinfo
pkgver=0.5.1
pkgrel=5
pkgdesc="A system information and benchmark tool."
url="http://hardinfo.berlios.de/wiki/index.php/Main_Page"
arch="all"
license="GPL2"
makedepends="gtk+-dev libsoup-dev>=2.4.0 gnutls-dev>=2.4.1"
depends=
source="http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.bz2
fixsensors.patch
uclibc.patch
hardinfo-alpine.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
# configure scrip says bash but bb ash works just fine
sed -i -e '1,1s/bash/sh/' configure
}
build() {
cd "$_builddir"
./configure --prefix=/usr || return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -d "$pkgdir"/etc
echo "Alpine Linux" > "$pkgdir"/etc/hardinfo.distro
}
md5sums="6fb38992e140f2fab16518ae1f38e188 hardinfo-0.5.1.tar.bz2
05c212db07b9f152cdea052ff7bb28fa fixsensors.patch
e5dfccb5d3cb46acd36072f9e2396ff4 uclibc.patch
41651eb55dc219b6d9c279227a17514a hardinfo-alpine.patch"
|