summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4040427bd0766aef762d805e599c1195d4e9454 (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
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Alexej Magura <agm2819*gmail*>
# Contributor: Swen Simon <swsimon at gmail dot com>

pkgname=epsxe-plugin-padjoy
pkgver=0.82
pkgrel=4
pkgdesc="Joy-device plugin"
url="http://members.chello.at/erich.kitzmueller/ammoq/main.html"
depends=('epsxe')
arch=(i686 x86_64)
license=(GPL2)
source=("http://members.chello.at/erich.kitzmueller/ammoq/down/padJoy082.tgz")
md5sums=('510fde521e641f002f39d132e56b6811')


package () {
  cd "$srcdir/padJoy"

  install -d "$pkgdir"/opt/epsxe/{cfg,plugins}

  if [[ "$CARCH" == "x86_64" ]]; then

      install -m 755 bin/cfgPadJoy \
	  "$pkgdir"/opt/epsxe/cfg && \
	  \
	  install -m 755 bin/libpadJoy* \
	  "$pkgdir"/opt/epsxe/plugins

  else

      make -C src && \
	  \
	  install -m 755 src/cfgPadJoy \
	  "$pkgdir"/opt/epsxe/cfg && \
	  \
	  install -m 755 src/libpadJoy* \
	  "$pkgdir"/opt/epsxe/plugins
  fi

  echo > "$pkgdir"/opt/epsxe/cfg/padJoy.cfg

  chown -R root:games "$pkgdir"/opt/epsxe
  chmod 775 "$pkgdir"/opt/epsxe/cfg
  chmod 664 "$pkgdir"/opt/epsxe/cfg/*.cfg
}