summaryrefslogtreecommitdiff
path: root/extra/usbview/PKGBUILD
blob: 21369ef29c78d2195bf44fdcc9e574182dfbe7c3 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $Id: PKGBUILD 169543 2012-10-23 11:13:44Z 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
}