# Maintainer : Thor M. K. Høgås pkgname=koku-xinput-wine pkgver=1.2.3 pkgrel=1 _srcname="${pkgname}-${pkgver}" pkgdesc="Adds xinput support to Wine without modifying the source binaries of Wine." arch=('i686' 'x86_64') url="https://www.github.com/KoKuToru/koku-xinput-wine" license=('BSD') provides=("${pkgname}") conflicts=("${pkgname}-git") makedepends=('cmake' 'wine') makedepends_x86_64=('gcc-multilib') depends_x86_64=('lib32-sdl2') depends_i686=('sdl2') source=("${pkgname}::${url}/archive/v${pkgver}.tar.gz") sha256sums=('9e38ee4db53e43543845843d8f1689a43b0100e6b326fbe716209fad3ce356b6') build() { cd "${srcdir}/${_srcname}" cmake -DCMAKE_BUILD_TYPE=Release . make } package() { cd "${srcdir}/${_srcname}" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/BSD2" if [ "$CARCH" == "x86_64" ]; then install -Dm755 koku-xinput-wine.so koku-xinput-wine64.so -t "${pkgdir}/usr/lib32/" else warning "i686 is not supported, although it may work, in this package." install -Dm755 koku-xinput-wine.so -t "${pkgdir}/usr/lib/" fi }