1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
5 pkgdesc="voice comm for games and group discussions"
6 url="http://www.ventrilo.com/"
9 [ "$CARCH" = i686 ] && depends=('wine')
10 [ "$CARCH" = x86_64 ] && depends=('bin32-wine')
11 makedepends=('p7zip' 'lynx')
12 install=ventrilo.install
13 source=(http://ftp.uni-kl.de/pub/mplayer/releases/codecs/win32codecs-essential-20040703.tar.bz2 \
14 ventrilo ventrilo.desktop ventrilo.png ventrilo.install)
18 md5sums=('58ce4d68001d4f39c3e84d52834fb3ef'
19 '14540b84d4f65f15baee6b42efc623ad'
20 '77a7dff56b8dd430f22428952cfff633'
21 '6953f4453e9f061c125421d8a2b7ea19'
22 'f9f9be1a01d11d72fbd51d225605d79f')
25 ### WE NEED TO DOWNLOAD THE CLIENT MANUALLY BECAUSE OF THE LICENSE ###
26 msg "Because of its license, the Ventrilo client needs to be download manually"
27 msg "For this purpose, I will now open a text web browser at ventrilo.com to download the client"
28 msg "You need to: 1) Read the license 2) Scroll down to 'I Agree' 3) Save the file with the default name 4) Close the browser (press Q)"
29 msg "Press a key to open ventrilo.com"
31 lynx -cookies off http://www.ventrilo.com/dlprod.php?id=1
33 if [ ! -f ventrilo-${pkgver}-Windows-i386.exe ]; then
34 msg "ventrilo-${pkgver}-Windows-i386.exe missing, aborting..."
38 # Woah, if somebody really got this far, the client will actually be
40 7z e ventrilo-${pkgver}-Windows-i386.exe -ovent
43 install -d -m755 ${pkgdir}/usr/share/ventrilo
44 install -d -m755 ${pkgdir}/usr/share/doc/ventrilo
45 mv ${srcdir}/vent/Ventrilo.exe1 ${pkgdir}/usr/share/ventrilo/ventrilo.exe
46 mv ${srcdir}/vent/{*.wav,default.vet} ${pkgdir}/usr/share/ventrilo/
47 mv ${srcdir}/vent/* ${pkgdir}/usr/share/doc/ventrilo/
48 mv ${srcdir}/win32codecs-essential-20040703/msgsm32.acm ${pkgdir}/usr/share/ventrilo/
50 # Windows app, so lets manually set permissions
51 find ${pkgdir}/usr/share/ventrilo -type d -exec chmod 755 "{}" \;
52 find ${pkgdir}/usr/share/ventrilo -type f -exec chmod 644 "{}" \;
53 find ${pkgdir}/usr/share/doc/ventrilo -type d -exec chmod 755 "{}" \;
54 find ${pkgdir}/usr/share/doc/ventrilo -type f -exec chmod 644 "{}" \;
56 # Install scripts for the user to run
57 install -d -m755 ${pkgdir}/usr/bin
58 install -m755 ventrilo ${pkgdir}/usr/bin
61 install -Dm644 ${srcdir}/ventrilo.desktop ${pkgdir}/usr/share/applications/ventrilo.desktop
62 install -Dm644 ${srcdir}/ventrilo.png ${pkgdir}/usr/share/pixmaps/ventrilo.png