summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3091de17c3170e2a0cc4ac406d437c105c9bd235 (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
46
47
48
49
# 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 $(find . -name "version*" -print) changelog $(find . -name "version*" -print)

    rename $(find . -name "readme*" -print) README $(find . -name "readm*" -print)

}

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
}