updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / nwn-hotu-resources-cdrom / PKGBUILD
blob03a3d85b77e33e66e8519031ae3c9d97c1397eb3
1 # Maintainer: Florian Léger <florian6 dot leger at laposte dot net>
3 pkgname=nwn-hotu-resources-cdrom
4 pkgdesc="Neverwinter Nights RPG from BioWare (Hordes Of The Underdark expansion resources, CD-ROM required)"
5 pkgver=1.69
6 pkgrel=1
7 arch=(any)
8 depends=("nwn-original-resources=$pkgver")
9 provides=("nwn-hotu-resources")
10 conflicts=("nwn-hotu-resources")
11 license=("custom")
12 url="http://nwn.bioware.com/downloads/linuxclient.html"
13 source=("http://files.bioware.com/neverwinternights/updates/linux/${pkgver//.}/English_linuxclient${pkgver//.}_xp2.tar.gz"
14         "96-hotu-resources.conf")
15 md5sums=('b021f0da3b3e00848521926716fdf487'
16          'c71b9a7f8e7642601e32a0a6d1549dd1')
18 # Package options
19 # Path to the HOTU cdrom mountpoint
20 : ${CD_DIR:="/media/sr0"}
22 package() {
23   cd "${srcdir}"
25   install -Dm644 "96-hotu-resources.conf" "${pkgdir}/etc/nwn/branches.d/96-hotu-resources.conf"
27   install -d "${pkgdir}/opt/nwn/hotu-resources"
29   # Data_Shared.zip
30   unzip "${CD_DIR}/Data_Shared.zip" 'ambient/*' 'data/*' 'localvault/*' 'music/*' 'texturepacks/*' -d "${pkgdir}/opt/nwn/hotu-resources"
32   # Language_Data.zip
33   unzip "${CD_DIR}/Language_Data.zip" -x xp2patch.key data/xp2patch.bif  -d "${pkgdir}/opt/nwn/hotu-resources"
34   mv "${pkgdir}/opt/nwn/hotu-resources/NWNHordes_Manual.pdf" "${pkgdir}/opt/nwn/hotu-resources/docs"
36   # Patch
37   local f
38   for f in xp2patch.key data/xp2patch.bif nwm/XP2*.nwm texturepacks/*; do
39     install -Dm644 "${f}" "${pkgdir}/opt/nwn/hotu-resources/${f}"
40   done