summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9eb2ed74893ec4fa0662c2ad5daa514cce4bed70 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Maintainer: X3n0m0rph59 <x3n0m0rph59@gmail.com>

pkgname='eruption-roccat-vulcan-git'
_pkgname='eruption-roccat-vulcan'
pkgdesc='Linux user-mode driver for the ROCCAT Vulcan 100/12x series keyboards'
pkgver='0.0.9'
pkgrel='3'
epoch=
arch=('i686' 'x86_64')
url='https://x3n0m0rph59.gitlab.io/eruption-roccat-vulcan/'
license=('GPL3+')
groups=()
depends=('libevdev' 'hidapi' 'systemd-libs' 'dbus')
makedepends=('git' 'rust')
checkdepends=()
optdepends=()
provides=()
conflicts=('eruption-roccat-vulcan')
replaces=()
backup=()
options=()
install='eruption.install'
changelog=
source=('git+https://gitlab.com/X3n0m0rph59/eruption-roccat-vulcan.git')
noextract=()
sha512sums=('SKIP')
PKGEXT='.pkg.tar.gz'

build() {
    cd "$_pkgname"
    
    CARGO_INCREMENTAL=0 cargo build --all --release
}

package() {
    cd "$_pkgname"
    
    mkdir -p "$pkgdir/usr/bin"
    mkdir -p "$pkgdir/etc/eruption"
    mkdir -p "$pkgdir/usr/share/doc/eruption"
    mkdir -p "$pkgdir/usr/share/eruption/templates"
    mkdir -p "$pkgdir/usr/lib/eruption/scripts"
    mkdir -p "$pkgdir/usr/lib/eruption/scripts/lib"
    
    mkdir -p "$pkgdir/usr/lib/systemd/system"
    mkdir -p "$pkgdir/usr/lib/systemd/system-preset"
    
    mkdir -p "$pkgdir/usr/lib/udev/rules.d/"
    
    mkdir -p "$pkgdir/etc/dbus-1/system.d"
    
    mkdir -p "$pkgdir/usr/share/man/man8"
    mkdir -p "$pkgdir/usr/share/man/man5"
    
    mkdir -p "$pkgdir/usr/share/bash-completion/completions"
    mkdir -p "$pkgdir/usr/share/zsh/site-functions"
    mkdir -p "$pkgdir/usr/share/eruption/i18n"
    
    install -m 755 "target/release/eruption" "$pkgdir/usr/bin/"
    install -m 644 "support/config/eruption.conf" "$pkgdir/etc/eruption/"
    
    install -m 644 "support/systemd/eruption.service" "$pkgdir/usr/lib/systemd/system/"
    install -m 644 "support/systemd/eruption.preset" "$pkgdir/usr/lib/systemd/system-preset/"
    
    install -m 644 "support/udev/99-eruption-roccat-vulcan.rules" "$pkgdir/usr/lib/udev/rules.d/"
    
    install -m 644 "support/dbus/org.eruption.control.conf" "$pkgdir/etc/dbus-1/system.d/"
    
    install -m 644 "support/man/eruption.8" "$pkgdir/usr/share/man/man8/"
    install -m 644 "support/man/eruption.conf.5" "$pkgdir/usr/share/man/man5/"
    
    install -m 644 "src/scripts/afterglow.lua" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/afterglow.lua.manifest" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/gaming.lua" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/gaming.lua.manifest" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/gradient.lua" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/gradient.lua.manifest" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/heartbeat.lua" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/heartbeat.lua.manifest" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/impact.lua" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/impact.lua.manifest" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/rainbow.lua" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/rainbow.lua.manifest" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/raindrops.lua" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/raindrops.lua.manifest" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/shockwave.lua" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/shockwave.lua.manifest" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/sysmon.lua" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/sysmon.lua.manifest" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/temperature.lua" "$pkgdir/usr/lib/eruption/scripts/"
    install -m 644 "src/scripts/temperature.lua.manifest" "$pkgdir/usr/lib/eruption/scripts/"
    
    install -m 644 "support/templates/about.html.tera" "$pkgdir/usr/share/eruption/templates/"
    install -m 644 "support/templates/base.html.tera" "$pkgdir/usr/share/eruption/templates/"
    install -m 644 "support/templates/detail.html.tera" "$pkgdir/usr/share/eruption/templates/"
    install -m 644 "support/templates/documentation.html.tera" "$pkgdir/usr/share/eruption/templates/"
    install -m 644 "support/templates/profiles.html.tera" "$pkgdir/usr/share/eruption/templates/"
    install -m 644 "support/templates/settings.html.tera" "$pkgdir/usr/share/eruption/templates/"
}