summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 08c864c6396903c2f0bf77239cf95c4997e4f815 (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
# Maintainer: Derek J. Clark <derekjohn.clark@gmail.com>
pkgname=opengamepadui-bin
_pkgbase=opengamepadui
pkgver=0.34.0
pkgrel=1
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' 'vulkan-tools' 'inputplumber'
  'mesa-utils'
)
optdepends=('firejail' 'bubblewrap' 'wireplumber' 'networkmanager' 'bluez' 'dbus' 'powerstation')
provides=('opengamepadui')
conflicts=('opengamepadui-git')
source=(opengamepadui-v$pkgver.tar.gz::https://github.com/ShadowBlip/OpenGamepadUI/releases/download/v$pkgver/opengamepadui.tar.gz)

sha256sums=('b1b8fe8153c1ec970e099532a60e36d1d5063f5e9dfceb91ad5c20f8136812ba')

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/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/libpty.linux.template_release.x86_64.so "${pkgdir}"/usr/share/opengamepadui/libpty.linux.template_release.x86_64.so
  install -Dm644 usr/share/opengamepadui/libxlib.linux.template_release.x86_64.so "${pkgdir}"/usr/share/opengamepadui/libxlib.linux.template_release.x86_64.so
  install -Dm644 usr/share/opengamepadui/libunixsock.linux.template_release.x86_64.so "${pkgdir}"/usr/share/opengamepadui/libunixsock.linux.template_release.x86_64.so
  install -Dm644 usr/share/opengamepadui/libdbus.linux.template_release.x86_64.so "${pkgdir}"/usr/share/opengamepadui/libdbus.linux.template_release.x86_64.so
  install -Dm644 usr/share/opengamepadui/liblinuxthread.linux.template_release.x86_64.so "${pkgdir}"/usr/share/opengamepadui/liblinuxthread.linux.template_release.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/opengamepad-ui.pck "${pkgdir}"/usr/share/opengamepadui/opengamepad-ui.pck
  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
  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.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
}