updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / wine-360 / PKGBUILD
blob5c8c6664c9bb1f7cae1e9f8d745688b5fec5e12f
1 # Maintainer: netherblood <netherblood.com>
2 pkgname=wine-360
3 pkgver=0.1
4 pkgrel=1
5 pkgdesc="Xbox 360 controller support for wine"
6 url="http://www.winehq.org"
7 arch=('x86_64' 'i686')
8 license=('GPL')
9 depends=('xboxdrv')
10 optdepends=()
11 makedepends=()
12 conflicts=()
13 replaces=()
14 backup=()
15 _gitroot="https://code.google.com/p/wine-360/"
17 build() {
18   cd "${srcdir}"
20   msg "Connecting to GIT server..."
22   if [ -d ${srcdir}/$pkgname ] ; then
23     cd $pkgname && git pull origin master
24     msg "Local repository updated."
25   else
26     git clone $_gitroot $pkgname
27   fi
29   cd "$srcdir/$pkgname"
30   
31   mkdir -p bin
32   g++ src/wine-360.cpp -o bin/wine-360
33   install -Dm755 "bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
34   install -Dm644 "dlls/x360ce.ini" "$pkgdir/usr/share/$pkgname/dlls/x360ce.ini"
35   install -Dm644 "dlls/xinput1_3.dll" "$pkgdir/usr/share/$pkgname/dlls/xinput1_3.dll"