mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Update pkgver and regenerate .SRCINFO
This commit is contained in:
parent
d427fe5af2
commit
56f1810154
2 changed files with 23 additions and 12 deletions
2
.SRCINFO
2
.SRCINFO
|
|
@ -1,6 +1,6 @@
|
|||
pkgbase = vbx-git
|
||||
pkgdesc = C-based CLI that plays mechanical keyboard sounds on keystrokes
|
||||
pkgver = 0.2.0.r47.93491af
|
||||
pkgver = 0.3.0.0.g373e64f
|
||||
pkgrel = 1
|
||||
url = https://github.com/S4NKALP/vbx
|
||||
install = vbx-git.install
|
||||
|
|
|
|||
33
PKGBUILD
33
PKGBUILD
|
|
@ -1,38 +1,47 @@
|
|||
# Maintainer: Sankalp <sankalptharu50028@gmail.com>
|
||||
|
||||
pkgname=vbx-git
|
||||
pkgver=0.2.0.r47.93491af
|
||||
pkgver=0.3.0.0.g373e64f
|
||||
pkgrel=1
|
||||
pkgdesc="C-based CLI that plays mechanical keyboard sounds on keystrokes"
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://github.com/S4NKALP/vbx"
|
||||
license=('MIT')
|
||||
|
||||
depends=(
|
||||
'libpulse'
|
||||
'json-c'
|
||||
'libsndfile'
|
||||
'libinput'
|
||||
'libevdev'
|
||||
'systemd-libs' # libudev
|
||||
'acl' # for setfacl command in install script
|
||||
'systemd-libs' # provides libudev
|
||||
'acl' # for setfacl command in install script
|
||||
)
|
||||
|
||||
makedepends=(
|
||||
'git'
|
||||
'make'
|
||||
'gcc'
|
||||
'pkgconf'
|
||||
'systemd' # provides libudev.pc headers for compilation
|
||||
'systemd' # provides libudev.pc headers
|
||||
)
|
||||
|
||||
provides=('vbx')
|
||||
conflicts=('vbx')
|
||||
|
||||
install="${pkgname}.install"
|
||||
|
||||
source=("git+${url}.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "${srcdir}/vbx"
|
||||
# Generate version dynamically for -git package
|
||||
printf "0.2.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
|
||||
git describe --long --tags --abbrev=7 2>/dev/null \
|
||||
| sed 's/^v//;s/-/./g' \
|
||||
|| printf "0.r%s.g%s" \
|
||||
"$(git rev-list --count HEAD)" \
|
||||
"$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
|
|
@ -49,15 +58,17 @@ package() {
|
|||
install -Dm755 input "${pkgdir}/usr/bin/vbx-input"
|
||||
|
||||
# Install shared data (soundpacks)
|
||||
install -d "${pkgdir}/usr/share/vbx"
|
||||
install -dm755 "${pkgdir}/usr/share/vbx"
|
||||
cp -r soundpacks "${pkgdir}/usr/share/vbx/"
|
||||
|
||||
# udev rule for access to input devices (install to /etc/udev/rules.d/ like Makefile)
|
||||
install -Dm644 /dev/stdin "${pkgdir}/etc/udev/rules.d/99-vbx-allow-keyboard.rules" << 'EOF'
|
||||
# Allow non-root access to input event devices for active seat users and input group
|
||||
# udev rule
|
||||
install -Dm644 /dev/stdin \
|
||||
"${pkgdir}/etc/udev/rules.d/99-vbx-allow-keyboard.rules" << 'EOF'
|
||||
# Allow non-root access to input event devices
|
||||
SUBSYSTEM=="input", KERNEL=="event*", TAG+="uaccess", GROUP="input", MODE="0660"
|
||||
EOF
|
||||
|
||||
# License
|
||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
install -Dm644 LICENSE \
|
||||
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue