blob: 965e8ac887c49ff15332143536e359c123571562 (
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
|
# Maintainer: Derek J. Clark <derekjohn.clark@gmail.com>
pkgname=opengamepadui-bin
_pkgbase=opengamepadui
pkgver=v0.28.0
pkgrel=3
pkgdesc="Open source game launcher"
arch=('x86_64')
url="https://github.com/ShadowBlip/OpenGamepadUI"
license=('GPL')
depends=('glibc' 'gcc-libs' 'libx11' 'libxres' 'libxcb' 'libxext' 'libxau'
'libxdmcp' 'gamescope' 'ryzenadj' 'vulkan-tools'
'mesa-utils'
)
optdepends=('firejail' 'bubblewrap' 'wireplumber' 'networkmanager' 'bluez' 'dbus')
provides=('opengamepadui')
conflicts=('opengamepadui-git')
source=(opengamepadui-$pkgver.tar.gz::https://github.com/ShadowBlip/OpenGamepadUI/releases/download/$pkgver/opengamepadui.tar.gz)
sha256sums=('6f9b36790eac6d8a5b263352ce43e605a8d2ede73366d210f4cfa9b030c26408')
prepare() {
cd "$srcdir/${_pkgbase}"
}
package() {
options=('!strip')
cd "$srcdir/${_pkgbase}"
mkdir -p "${pkgdir}"/usr/bin
install -Dm755 usr/bin/opengamepadui "${pkgdir}"/usr/bin
mkdir -p "${pkgdir}"/usr/lib/systemd/user
install -Dm644 usr/lib/systemd/user/ogui-overlay-mode.service "${pkgdir}"/usr/lib/systemd/user
mkdir -p "${pkgdir}"/usr/lib/udev/hwdb.d
install -Dm644 usr/lib/udev/hwdb.d/59-opengamepadui-handheld.hwdb "${pkgdir}"/usr/lib/udev/hwdb.d/59-opengamepadui-handheld.hwdb
mkdir -p "${pkgdir}"/usr/lib/udev/rules.d
install -Dm644 usr/lib/udev/rules.d/61-opengamepadui-handheld.rules "${pkgdir}"/usr/lib/udev/rules.d/61-opengamepadui-handheld.rules
mkdir -p "${pkgdir}"/usr/share/icons/hicolor/scalable/apps
install -Dm444 usr/share/icons/hicolor/scalable/apps/opengamepadui.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/opengamepadui.svg
mkdir -p "${pkgdir}"/usr/share/opengamepadui/scripts
install -Dm644 usr/share/opengamepadui/libevdev.linux.template_debug.x86_64.so "${pkgdir}"/usr/share/opengamepadui/libevdev.linux.template_debug.x86_64.so
install -Dm644 usr/share/opengamepadui/libopensd.linux.template_debug.x86_64.so "${pkgdir}"/usr/share/opengamepadui/libopensd.linux.template_debug.x86_64.so
install -Dm644 usr/share/opengamepadui/libpty.linux.template_debug.x86_64.so "${pkgdir}"/usr/share/opengamepadui/libpty.linux.template_debug.x86_64.so
install -Dm644 usr/share/opengamepadui/libxlib.linux.template_debug.x86_64.so "${pkgdir}"/usr/share/opengamepadui/libxlib.linux.template_debug.x86_64.so
install -Dm644 usr/share/opengamepadui/libunixsock.linux.template_debug.x86_64.so "${pkgdir}"/usr/share/opengamepadui/libunixsock.linux.template_debug.x86_64.so
install -Dm644 usr/share/opengamepadui/libdbus.linux.template_debug.x86_64.so "${pkgdir}"/usr/share/opengamepadui/libdbus.linux.template_debug.x86_64.so
install -Dm644 usr/share/opengamepadui/liblinuxthread.linux.template_debug.x86_64.so "${pkgdir}"/usr/share/opengamepadui/liblinuxthread.linux.template_debug.x86_64.so
install -Dm755 usr/share/opengamepadui/opengamepad-ui.x86_64 "${pkgdir}"/usr/share/opengamepadui/opengamepad-ui.x86_64
install -Dm755 usr/share/opengamepadui/scripts/powertools "${pkgdir}"/usr/share/opengamepadui/scripts/powertools
install -Dm755 usr/share/opengamepadui/scripts/manage_input "${pkgdir}"/usr/share/opengamepadui/scripts/manage_input
install -Dm755 usr/share/opengamepadui/scripts/make_nice "${pkgdir}"/usr/share/opengamepadui/scripts/make_nice
install -Dm755 usr/share/opengamepadui/scripts/system_profiler.py "${pkgdir}"/usr/share/opengamepadui/scripts/system_profiler.py
setcap 'cap_sys_nice=eip' "${pkgdir}/usr/share/opengamepadui/opengamepad-ui.x86_64"
mkdir -p "${pkgdir}"/usr/share/polkit-1/actions
install -Dm644 usr/share/polkit-1/actions/org.shadowblip.powertools.policy "${pkgdir}"/usr/share/polkit-1/actions/org.shadowblip.powertools.policy
install -Dm644 usr/share/polkit-1/actions/org.shadowblip.manage_input.policy "${pkgdir}"/usr/share/polkit-1/actions/org.shadowblip.manage_input.policy
install -Dm644 usr/share/polkit-1/actions/org.shadowblip.setcap.policy "${pkgdir}"/usr/share/polkit-1/actions/org.shadowblip.setcap.policy
}
|