summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1f79073636f2acf32194773b0b66d21311c7769 (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
# Maintainer: Gabriele Musco <gabmus@disroot.org>
# Upstream URL: https://github.com/qmk/qmk_firmware

pkgname=qmk-udev-rules-git
pkgver=0.18.17.r38.g06a3801a278
pkgrel=1
pkgdesc="Udev rules to own qmk supported keyboards in bootloader mode"
arch=('any')
url="https://github.com/qmk/qmk_firmware"
license=('GPL-2.0')
depends=('systemd')
makedepends=('git')
conflicts=('qmk-udev-rules')
source=("qmk-firmware::git+https://github.com/qmk/qmk_firmware")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/qmk-firmware"
    git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    mkdir -p "${pkgdir}/etc/udev/rules.d"
    install -m 644 "${srcdir}/qmk-firmware/util/udev/50-qmk.rules" "${pkgdir}/etc/udev/rules.d/50-qmk.rules"
}