blob: 8b41fa69c5974bfc24d575d2534251aadb0b99b4 (
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
|
# Maintainer: Jose Riha <jose1711 gmail com>
pkgname=hidapitester-git
_pkgname=hidapitester
pkgver=r76.90e4bae
pkgrel=1
pkgdesc="Simple command-line program to test HIDAPI"
url="https://github.com/todbot/hidapitester"
depends=(systemd-libs hidapi)
makedepends=('git')
conflicts=(hidapitester)
license=('GPL')
arch=('x86_64' 'i686')
source=("${pkgname}"::'git+https://github.com/todbot/hidapitester.git')
md5sums=('SKIP')
build() {
cd ${srcdir}/${pkgname}
make
}
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
install -Dm755 "${srcdir}/${pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "${srcdir}/${pkgname}/README.md" "${pkgdir}/usr/share/${_pkgname}/README.md"
}
# vim:set ts=2 sw=2 et:
|