blob: 7adf6d2cce9f96c4b2778124d273aac38f7327df (
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
|
# Maintainer: Azarattum <azarattum@pm.me>
pkgname=hotkeyer-git
_pkgname=hotkeyer
pkgver=2.1.4
pkgrel=1
pkgdesc='Universal context-aware hotkeyer. (fork of keymapper)'
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/Azarattum/UniversalHotkeyer"
license=('GPL3')
depends=('libusb' 'libx11')
makedepends=('cmake' 'git')
conflicts=(${_pkgname})
provides=(${_pkgname})
source=('git+https://github.com/Azarattum/UniversalHotkeyer'
'hotkeyer.service'
'hotkeyer.desktop')
md5sums=(SKIP
SKIP
SKIP)
pkgver() {
cd "${srcdir}/UniversalHotkeyer"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/UniversalHotkeyer"
echo "\"${pkgver}\"" > "src/_version.h"
cmake . -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
install -Dm644 "hotkeyer.service" -t "$pkgdir/usr/lib/systemd/system/"
install -Dm644 "hotkeyer.desktop" -t "$pkgdir/etc/xdg/autostart/"
cd "${srcdir}/UniversalHotkeyer"
make DESTDIR="$pkgdir" install
}
|