diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/usbview | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 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 +} |