summaryrefslogtreecommitdiff
path: root/testing/sysfsutils/PKGBUILD
blob: fd238c0c42c051385dfe544cffc725293443f37f (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
# $Id: PKGBUILD 141986 2011-11-03 20:17:26Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=sysfsutils
pkgver=2.1.0
pkgrel=7
pkgdesc="System Utilities Based on Sysfs"
arch=(i686 x86_64)
license=('GPL' 'LGPL')
url="http://linux-diag.sourceforge.net/Sysfsutils.html"
groups=('base')
depends=('glibc')
source=(http://downloads.sourceforge.net/sourceforge/linux-diag/${pkgname}-${pkgver}.tar.gz)
md5sums=('14e7dcd0436d2f49aa403f67e1ef7ddc')
options=(!libtool)

build() {
  cd "${srcdir}/${pkgname}-${pkgver}" 
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

check() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make check
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}" 
  make DESTDIR="${pkgdir}" install

  cd "${pkgdir}"
  mkdir -v lib
  mv -v usr/lib/libsysfs.so.2* lib/
  ln -svf ../../lib/libsysfs.so.2 usr/lib/libsysfs.so
}