summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56cf36324824b88ed9354a5d66b205f76da7742e (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
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>

pkgname=hw-probe
pkgver=r3.0015b3d
pkgrel=1
pkgdesc="Tool to probe for hardware, check its operability and upload result to the Linux hardware DB: http://linux-hardware.org"
arch=('any')
url="https://github.com/linuxhw/hw-probe"
license=('GPLv2')
makedepends=('git')
source=("git+$url")
md5sums=('SKIP')
depends=('perl>=5' 'hwinfo' 'curl' 'dmidecode' 'pciutils' 'usbutils')
optdepends=('hdparm' 'smartmontools' 'inxi' 'pnputils')
provides=('hw-probe')

pkgver() {
  cd "${srcdir}/hw-probe"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${srcdir}/hw-probe"
  install -Dm755 hw-probe.pl "${pkgdir}/usr/bin/${provides[0]}"
}