summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c69542e0c8bb90e98a700ed8110e620b7548460f (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
# Maintainer: Clayton Craft <clayton at craftyguy dot net>
pkgname=hidviz
pkgver=0.1.3
pkgrel=1
pkgdesc="Tool for in-depth analysis of USB HID devices communication"
arch=('i686' 'x86_64')
url="https://github.com/ondrejbudai/hidviz"
license=('GPL3')
depends=('libusb' 'protobuf' 'qt5-base' 'cmake')
provides=("${pkgname}")
conflicts=("${pkgname}")
source=("http://hidviz.org/releases/$pkgname-$pkgver.tar.gz")
sha256sums=('8ac8df2712ad1b88c824d591d53230ec0f923ffeb1f1dc20126c1e55ee84b5e0')
prepare() {
        cd "${pkgname}-${pkgver}"
        mkdir -p build
        cd build
        cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}"/usr -DCMAKE_INSTALL_LIBDIR="${pkgdir}"/usr/lib ..
}

build() {
        cd "${pkgname}-${pkgver}"/build
        make
}

package() {
        cd "${pkgname}-${pkgver}"/build
        make install
        # The following is a nasty workaround for the package author having to
        # comply with Fedora packaging requirements.
        mv "${pkgdir}"/usr/lib/hidviz/* "${pkgdir}"/usr/lib
        rmdir "${pkgdir}"/usr/lib/hidviz
}