updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / daphne-beta / PKGBUILD
blob4d44f3bad42e8533ba4415be6f5c74014b914914
1 #Contributor: robb_force <robb_force>
3 pkgname=daphne-beta
4 _pkgname=daphne
5 pkgver=1.0
6 pkgrel=1
7 pkgdesc="A command-line multiple arcade laserdisc emulator."
8 url="http://www.daphne-emu.com/"
9 license="GPL"
10 arch=('i686')
11 depends=('sdl_mixer' 'zlib' 'gcc-libs')
12 conflicts=('daphne')
13 provides=('daphne=1.0')
14 source=(http://www.daphne-emu.com/download/${_pkgname}-${pkgver}beta-linux.tar.gz \
15   daphne.sh )
16 md5sums=('a7812a93bc19fe9ec4cd0a1a7066c71f'
17          '58c7d5cb0fa68a386692ee35cc675d4b')
19 build()
21   # Install the scripts
22   cd ${startdir}/src 
23   install -Dm755 daphne.sh ${startdir}/pkg/usr/bin/${_pkgname}
24   
25   # Install everything else in /opt/daphne-beta
26   # daphneloader can be run from here to do updates or run games.
27   cd ${startdir}/src/${_pkgname}
28   mkdir -p ${startdir}/pkg/opt/${pkgname}
29   cp -R * ${startdir}/pkg/opt/${pkgname}/
30   
31   # Change group to games
32   chown -R :games ${startdir}/pkg/opt/${pkgname}
34   # Set permissions for files and folders
35   find ${startdir}/pkg/opt/${pkgname} -type f -exec chmod 660 {} +
36   find ${startdir}/pkg/opt/${pkgname} -type d -exec chmod 770 {} +  
38   # Set permissions for the executables
39   cd ${startdir}/pkg/opt/${pkgname}
40   chmod 770 {daphne,daphneloader,daphneloader.bin,input_grabber}