blob: dd16c4a1082928fb9eb78f06deeab7a97db45fdb (
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
44
45
46
|
# Maintainer: Tbsc <me in tbscdev point xyz>
pkgname=ratslap-git
pkgver=0.2.0.r2.g353fe44
pkgrel=2
pkgdesc="Community made Linux drivers for Logitech mice (Currently only G300s)"
arch=('i686' 'x86_64')
url="https://gitlab.com/krayon/ratslap"
license=('GPL2')
depends=('libusb')
makedepends=('git' 'ctags')
provides=('ratslap')
conflicts=('ratslap')
options=()
install=
source=('ratslap-git::git+https://gitlab.com/krayon/ratslap')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/ratslap-git"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
# Git, tags available
#printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
# Git, no tags available
#printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/ratslap-git"
make
}
check() {
true
}
package() {
cd "$srcdir/ratslap-git"
install -Dm755 "$srcdir/ratslap-git/ratslap" "${pkgdir}/usr/bin/ratslap"
}
|