summaryrefslogtreecommitdiff
path: root/community/hwinfo/PKGBUILD
blob: 7b081488f012296e77e6d1ab360039718963cf24 (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
# $Id: PKGBUILD 36515 2011-01-03 19:26:37Z kchen $
# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Gergely Imreh <imrehgATgmailDOTcom>
# Originally contributed by champus, madeye, Ranguvar and ninja_pt

pkgname=hwinfo
pkgver=18.1
_pkgver=$pkgver-3.5
pkgrel=9
pkgdesc='The hardware detection tool from openSUSE'
arch=('i686' 'x86_64')
url='http://www.opensuse.org/'
license=('GPL2')
depends=('perl' 'libx86emu')
makedepends=('sysfsutils' 'rpmextract' 'flex')
source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/$pkgname-$_pkgver.src.rpm"
        'kbd.patch')
md5sums=('17c2a703643d1f007859c5e743589bb8'
         '1500ecfa26f6aaf4d7967eea74e86e5d')

build() {
  cd "${srcdir}"
  rpmextract.sh "${pkgname}-${_pkgver}.src.rpm"
  tar -xjf $pkgname-$pkgver.tar.bz2
  cd "${srcdir}/${pkgname}-${pkgver}"

# Apply patch for custom ioctl
  patch -p 0 < ../kbd.patch

  make -j1 LIBDIR=/usr/lib
  make LIBDIR=/usr/lib DESTDIR=$pkgdir install
}