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)"
8 depends=("nwn-original-resources=$pkgver")
9 provides=("nwn-hotu-resources")
10 conflicts=("nwn-hotu-resources")
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')
19 # Path to the HOTU cdrom mountpoint
20 : ${CD_DIR:="/media/sr0"}
25 install -Dm644 "96-hotu-resources.conf" "${pkgdir}/etc/nwn/branches.d/96-hotu-resources.conf"
27 install -d "${pkgdir}/opt/nwn/hotu-resources"
30 unzip "${CD_DIR}/Data_Shared.zip" 'ambient/*' 'data/*' 'localvault/*' 'music/*' 'texturepacks/*' -d "${pkgdir}/opt/nwn/hotu-resources"
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"
38 for f in xp2patch.key data/xp2patch.bif nwm/XP2*.nwm texturepacks/*; do
39 install -Dm644 "${f}" "${pkgdir}/opt/nwn/hotu-resources/${f}"