diff options
author | Clayton Craft | 2017-05-07 13:17:12 -0700 |
---|---|---|
committer | Clayton Craft | 2017-05-07 13:17:12 -0700 |
commit | 6d54e1bc0b6d8000d88ad0443732b7450405782d (patch) | |
tree | 7d24c10ddc4a1ff8b8defccf9bce8cb5dc862388 /PKGBUILD | |
download | aur-6d54e1bc0b6d8000d88ad0443732b7450405782d.tar.gz |
initial release
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c69542e0c8bb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} + |