diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/usbview | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/usbview')
-rw-r--r-- | community/usbview/PKGBUILD | 43 | ||||
-rw-r--r-- | community/usbview/usbview.install | 16 |
2 files changed, 59 insertions, 0 deletions
diff --git a/community/usbview/PKGBUILD b/community/usbview/PKGBUILD new file mode 100644 index 000000000..8a0a59b05 --- /dev/null +++ b/community/usbview/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 81972 2013-01-05 07:30:40Z giovanni $ +# Maintainer: Giovanni Scafora <giovanni@archlinux.org> +# Contributor: Jason Chu <jason@archlinux.org> + +pkgname=usbview +pkgver=2.0 +pkgrel=2 +pkgdesc="Display the topology of devices on the USB bus" +arch=('i686' 'x86_64') +url="http://www.kroah.com/linux/usb/" +license=('GPL') +depends=('gtk3' 'desktop-file-utils') +makedepends=('pkg-config' 'gendesk') +install=${pkgname}.install +source=("http://www.kroah.com/linux/usb/${pkgname}-${pkgver}.tar.gz") +md5sums=('565f2e79f3924d14ab5b4d8aced557e5') + +build() { + cd "${srcdir}" + gendesk -n + sed -i "s:Application;:Application;System:g" "${srcdir}"/${pkgname}.desktop + + cd "${pkgname}-${pkgver}" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make prefix="${pkgdir}/usr" \ + sysconfdir="${pkgdir}/etc" \ + localstatedir="${pkgdir}/var" install + + install -Dm0644 "${srcdir}"/${pkgname}.desktop \ + "${pkgdir}"/usr/share/applications/${pkgname}.desktop + + install -Dm0644 "${srcdir}"/${pkgname}-${pkgver}/usb_icon.xpm \ + "${pkgdir}"/usr/share/pixmaps/${pkgname}.xpm +} diff --git a/community/usbview/usbview.install b/community/usbview/usbview.install new file mode 100644 index 000000000..b7f7e849b --- /dev/null +++ b/community/usbview/usbview.install @@ -0,0 +1,16 @@ +post_install() { + update-desktop-database -q + echo ">>> Debugfs must be mounted in order to use usbview." + echo ">>> As root execute:" + echo ">>> \"mount -t debugfs none /sys/kernel/debug\" or add" + echo ">>> \"none /sys/kernel/debug debugfs defaults 0 0\"" + echo ">>> to /etc/fstab" +} + +post_upgrade() { + post_install +} + +post_remove() { + update-desktop-database -q +} |