summaryrefslogtreecommitdiff
path: root/pcr/antimicro/PKGBUILD
blob: 7abf10a0cea192b4bc5accb10218f55475eff199 (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
# Maintainer (Arch): grimi <grimi at poczta dot fm>
# Maintainer (Arch): Thomas Nordenmark <t.nordenmark@gmail.com>
# Developer (Arch): Travis Nickles <nickles.travis@gmail.com>

pkgname=antimicro
pkgver=2.23
pkgrel=1
pkgdesc="Graphical program used to map keyboard keys and mouse controls to gamepad buttons"
arch=('i686' 'x86_64')
url="https://github.com/AntiMicro/antimicro"
license=('GPL3')
depends=('libxkbcommon-x11' 'libxtst' 'qt5-base' 'sdl2' 'shared-mime-info' 'desktop-file-utils')
makedepends=('cmake' 'gettext' 'itstool' 'qt5-tools')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/AntiMicro/${pkgname}/archive/${pkgver}.tar.gz")
sha512sums=('cd58b5a9771d35fc937306a3452e8776ef754bb5a4fa44aeedb735d8366a38b318c1bf14f105bf8003e4264c35f129224becdade32d2a7b61067ec5a705a1e7e')
whirlpoolsums=('a2dca98c175b6ad318e57583fbad2f6caca6245d33b526219e13ecfdc18a6da54a6c8ee9545c41786f155f0ade8d4af1dcafc636ff847d2ffbab629c5aae92f7')



build() {
  cd ${pkgname}-${pkgver}

  mkdir -p build && cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_SDL_2=ON -DWITH_XTEST=ON \
      -DWITH_UINPUT=ON -DAPPDATA=ON ..
  make
}

package() {
  cd ${pkgname}-${pkgver}/build

  make DESTDIR="${pkgdir}" install
}