diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 21 insertions, 14 deletions
@@ -1,28 +1,35 @@ # Maintainer: Thor M. K. Høgås <thor alfakrøll roht dott no> pkgname=koku-xinput-wine -pkgver=2016.03.25.ca7cd49 +pkgver=1.2.1 pkgrel=1 -pkgdesc="Adds xinput support to Wine, without modifying the source binaries of Wine." +_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=('GPL3') -makedepends=('git' 'cmake') -depends=('sdl2' 'lib32-sdl2' 'lib32-glibc') -source=("$pkgname::git://github.com/KoKuToru/koku-xinput-wine") -md5sums=('SKIP') +license=('custom:BSD2') +conflicts=("${pkgname}-git") -pkgver() { - cd "$pkgname" - git log -1 --format="%cd.%h" --date=short | sed 's:-:.:g' -} +makedepends=('cmake' 'wine') +makedepends_x86_64=('gcc-multilib') +depends_x86_64=('lib32-sdl2') +depends_i686=('sdl2') + +source=("${pkgname}::${url}/archive/v${pkgver}.tar.gz") +md5sums=('c38ec13596471bdc46b1bea12b60a525') build() { - cd "$pkgname" + cd "${srcdir}/${_srcname}" cmake . make } package() { - cd "$pkgname" - install -Dm755 koku-xinput-wine.so "$pkgdir/usr/lib32/koku-xinput-wine.so" + 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 + install -Dm755 koku-xinput-wine.so -t "${pkgdir}/usr/lib/" + fi } + |