summaryrefslogtreecommitdiff
path: root/pcr/hwd/PKGBUILD
blob: bffd46937b55b09959e6a1d9d81449ad3a55950b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Contributor: Diogo Leal <estranho@diogoleal.com> 
# Contributor: Diogo Leal <estranho@diogoleal.com>
# Maintainer : Parabola GNU / Linux-libre <aurelien@hackers.camp>

pkgname=hwd
pkgver=5.5.2
pkgrel=3
pkgdesc="Hardware detect and xorg.conf generator"
arch=('i686' 'x86_64' 'mips64el')
url="http://user-contributions.org/projects/hwd/hwd.html"
license=('GPL')
depends=('bash' 'pciutils' 'usbutils' 'ddcxinfo-arch' 'wget')
install=hwd.install
source=(http://user-contributions.org/projects/hwd/src/$pkgname-$pkgver.bin.tar.gz)

build() {
  cd $srcdir/$pkgname-$pkgver
  install -d ${pkgdir}/{etc/hwd,usr/bin,usr/share/hwd}
  install -Dm755 usr/sbin/* ${pkgdir}/usr/bin/ || return 1
  for x in "etc/hwd" "usr/share/hwd/" "usr/bin" ; do install -Dm755 $x/* ${pkgdir}/$x/ || return 1; done
}