From 8ec72b300bd4d3123a052a58ca8b707febfbe8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Fri, 19 Jun 2015 04:17:32 -0300 Subject: antimicro: add new package to [pcr] --- pcr/antimicro/PKGBUILD | 29 +++++++++++++++++++++++++++++ pcr/antimicro/antimicro.install | 16 ++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 pcr/antimicro/PKGBUILD create mode 100644 pcr/antimicro/antimicro.install (limited to 'pcr/antimicro') diff --git a/pcr/antimicro/PKGBUILD b/pcr/antimicro/PKGBUILD new file mode 100644 index 000000000..8380aace1 --- /dev/null +++ b/pcr/antimicro/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer (Arch): Travis Nickles + +pkgname=antimicro +pkgver=2.14 +pkgrel=1 +pkgdesc="Graphical program used to map keyboard keys and mouse controls to gamepad buttons" +arch=('i686' 'x86_64') +url="https://github.com/Ryochan7/antimicro" +license=('GPL3') +depends=('libxkbcommon-x11' 'libxtst' 'qt5-base' 'sdl2') +makedepends=('cmake' 'gettext' 'itstool' 'qt5-tools') +install="${pkgname}.install" +source=("https://github.com/Ryochan7/antimicro/archive/${pkgver}.tar.gz") +md5sums=("66aecb2cb11070fb53e23d50196b7e97") + +build() { + cd "${srcdir}/${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 || return 1 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}/build" + + make DESTDIR="${pkgdir}" install +} diff --git a/pcr/antimicro/antimicro.install b/pcr/antimicro/antimicro.install new file mode 100644 index 000000000..b5cadcc4f --- /dev/null +++ b/pcr/antimicro/antimicro.install @@ -0,0 +1,16 @@ +post_install() { + xdg-icon-resource forceupdate +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} + +op=$1 +shift + +$op $* -- cgit v1.2.2