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

pkgname=epsxe-plugin-spu-alsa
pkgver=1.9
pkgrel=6
pkgdesc="OSS/Alsa SPU plugin"
url="http://www.pbernert.com"
depends=('epsxe')
source=(http://www.pbernert.com/spupeopsoss109.tar.gz)
md5sums=('b42b316576f9f81775f78d62b3567b16')
license=('custom')
arch=('i686' 'x86_64')

prepare()
{
  cd "$srcdir"
  mv version_"${pkgver//./_}".txt changelog
  mv readme_"${pkgver//./_}".txt README
}

package()
{
  cd "$srcdir"
  install -d "$pkgdir/usr/share/doc/$pkgname" "$pkgdir"/opt/epsxe/{plugins,cfg}

  install -m 644 -t "$pkgdir/usr/share/doc/$pkgname" changelog README
  install -m 755 -t "$pkgdir/opt/epsxe/plugins" "libspuPeopsOSS.so.1.0.9"
  install -m 664 -t "$pkgdir/opt/epsxe/cfg" "cfgPeopsOSS" "spuPeopsOSS.cfg"

  # permissions
  chown root:games "$pkgdir"/opt/epsxe/cfg/{cfgPeopsOSS,spuPeopsOSS.cfg}
  chown root:games "$pkgdir"/opt/epsxe/plugins/libspuPeopsOSS.so.1.0.9
  # chmod 775 "$pkgdir"/opt/epsxe/cfg/cfgPeopsOSS
  # chmod 775 "$pkgdir"/opt/epsxe/plugins/libspuPeopsOSS.so.1.0.9
}