From 046d46bbccb15826cb67244a90c65bb7dd84279c Mon Sep 17 00:00:00 2001 From: aurelien Date: Sun, 1 Jun 2014 08:41:55 +0200 Subject: hwd --- pcr/hwd/PKGBUILD | 21 +++++++++++++++++++++ pcr/hwd/hwd.install | 30 ++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 pcr/hwd/PKGBUILD create mode 100644 pcr/hwd/hwd.install (limited to 'pcr/hwd') diff --git a/pcr/hwd/PKGBUILD b/pcr/hwd/PKGBUILD new file mode 100644 index 000000000..f4af6f8f5 --- /dev/null +++ b/pcr/hwd/PKGBUILD @@ -0,0 +1,21 @@ +# Contributor: Diogo Leal +# Contributor: Diogo Leal +# Maintainer : Parabola GNU / Linux-libre + +pkgname=hwd +pkgver=5.5.2 +pkgrel=2 +pkgdesc="Hardware detect and xorg.conf generator for Arch Linux" +arch=('i686' 'x86_64') +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 +} diff --git a/pcr/hwd/hwd.install b/pcr/hwd/hwd.install new file mode 100644 index 000000000..04955bfa9 --- /dev/null +++ b/pcr/hwd/hwd.install @@ -0,0 +1,30 @@ +# arg 1: the new package version +post_install() { +echo "" +echo "lshwd dependency is replaced by pciutils and usbutils." +echo "" +echo "Run 'hwd -u' to update xorgtable, pci-, and usb.ids." +echo "" +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + /bin/true +echo "" +echo "lshwd dependency is replaced by pciutils and usbutils." +echo "" +echo "Run 'hwd -u' to update xorgtable, pci-, and usb.ids." +echo "" + +} + +# arg 1: the old package version +pre_remove() { + rm -R /etc/hwd >/dev/null 2>&1 +} + +op=$1 +shift + +$op $* -- cgit v1.2.3-2-g168b