summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8044eb6b7b8bde1b6d74e4146c30290599bdcd52 (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
# Maintainer: Alexej Magura <sickhadas at gmail dot com>
# Contributor: Swen Simon <swsimon at gmail dot com>

pkgname=epsxe-plugin-gpu-mesagl
pkgver=1.78
pkgrel=5
pkgdesc="Accelerated MesaGL plugin"
url="http://www.pbernert.com"
depends=('epsxe' 'mesa')
source=(http://www.pbernert.com/gpupeopsmesagl178.tar.gz)
md5sums=('1e753dac1cc799a1dd326f5b61d2b10c')
license=('custom')
arch=('i686' 'x86_64')

prepare()
{
  cd "$srcdir"/peops_psx_mesagl_gpu

  [[ -r readme.txt ]] && mv readme.txt README
  [[ -r version.txt ]] && mv version.txt changelog
}

package()
{
  cd "$srcdir"/peops_psx_mesagl_gpu

  install -d "$pkgdir/usr/share/doc/$pkgname" "$pkgdir"/opt/epsxe/{cfg,plugins}

  install -m 644 -t "$pkgdir/usr/share/doc/$pkgname" README changelog
  install -t "$pkgdir/opt/epsxe/cfg" $(find . -name "cfg*" -print) $(find . -name "*.cfg" -print)
  install -t "$pkgdir/opt/epsxe/plugins" $(find . -name "*.so.*" -print)

  ## permissions ##
  chmod 775 "$pkgdir"/opt/epsxe/{cfg,plugins}
  chown root:games "$pkgdir"/opt/epsxe/cfg/{gpuPeopsMesaGL.cfg,cfgPeopsMesaGL}
  chown root:games "$pkgdir"/opt/epsxe/plugins/libgpuPeopsMesaGL.so.1.0.78
  chmod 664 "$pkgdir"/opt/epsxe/cfg/gpuPeopsMesaGL.cfg
  chmod 755 "$pkgdir"/opt/epsxe/cfg/cfgPeopsMesaGL
  chmod 755 "$pkgdir"/opt/epsxe/plugins/libgpuPeopsMesaGL.so.1.0.78
}