summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 97520da35a21faf51e461aeb9f26ee4b2c6a2d07 (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
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: zocker_160 <zocker1600 at posteo dot net>

pkgname=keyboard-center
pkgver=0.1.19
pkgrel=1
pkgdesc="Application to map G-keys on (some) Logitech Gaming Keyboards"
arch=('x86_64')
url="https://github.com/zocker-160/keyboard-center"
license=('GPL3')
depends=(
    'python>=3.8'
    'python-pyqt5>=5.14'
    'python-uinput>=0.11.2'
    'python-ruamel-yaml>=0.15'
    'python-pyusb>=1.0.2'
    'hidapi>=0.10'
    'libnotify>=0.7.9'
)
optdepends=('openrgb: RGB control for your keyboard')
makedepends=('git')
source=("$pkgname-$pkgver::git+https://github.com/zocker-160/keyboard-center.git#tag=$pkgver")
sha256sums=('SKIP')

install=keyboard-center.install

prepare() {
  cd $pkgname-$pkgver
  # nothing to see here
}

build() {
  cd $pkgname-$pkgver
  # still nothing to see here
}

package() {
  cd $pkgname-$pkgver
  
  install -d -m755 src "$pkgdir"/usr/lib/"$pkgname"
  
  cp -r src/assets "$pkgdir"/usr/lib/"$pkgname"
  cp -r src/config "$pkgdir"/usr/lib/"$pkgname"
  cp -r src/devices "$pkgdir"/usr/lib/"$pkgname"
  cp -r src/gui "$pkgdir"/usr/lib/"$pkgname"
  cp -r src/lib "$pkgdir"/usr/lib/"$pkgname"
  
  install -D -m755 linux_packaging/assets/keyboard-center.sh "$pkgdir"/usr/bin/"$pkgname"
  
  install -D -m755 src/main.py -t "$pkgdir"/usr/lib/"$pkgname"
  install -D -m755 src/service.py -t "$pkgdir"/usr/lib/"$pkgname"
  
  install -D -m644 src/keyboard-center.service -t "$pkgdir"/usr/lib/systemd/user
  install -D -m644 linux_packaging/60-keyboard-center.rules -t "$pkgdir"/usr/lib/udev/rules.d
  install -D -m644 linux_packaging/uinput-keyboard-center.conf "$pkgdir"/usr/lib/modules-load.d/"$pkgname".conf
  
  install -D -m644 linux_packaging/assets/keyboard-center.png -t "$pkgdir"/usr/share/icons/hicolor/512x512/apps
  install -D -m644 linux_packaging/assets/keyboard-center.desktop -t "$pkgdir"/usr/share/applications  
}