summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24f309f0370566bcf4b4c96088b0d2e12a5e1188 (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-spu-alsa
pkgver=1.9
pkgrel=5
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"
    rename version_"${pkgver//./_}".txt changelog version_"${pkgver//./_}".txt
    rename readme_"${pkgver//./_}".txt README readme_"${pkgver//./_}".txt

}

package () {

    cd "$srcdir"

    install -d "$pkgdir/usr/share/doc/$pkgname"


    install -m 644 -t "$pkgdir/usr/share/doc/$pkgname" changelog README

    for places in /opt/epsxe/{plugins,cfg}
    do
	install -d "$pkgdir/$places"
    done

    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 755 "$pkgdir"/opt/epsxe/cfg/cfgPeopsOSS
  chmod 755 "$pkgdir"/opt/epsxe/plugins/libspuPeopsOSS.so.1.0.9
}