# $Id: PKGBUILD 112979 2014-06-10 18:08:29Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Slash <demodevil5[at]yahoo[dot]com>
# Contributor: Babets
# Contributor: Vain

pkgname=warsow-data
pkgver=1.51
pkgrel=1
pkgdesc="a free online multiplayer competitive FPS based on the Qfusion engine (data files)"
url="http://www.warsow.net/"
license=('custom:Warsow Content License')
arch=('any')
source=(http://www.warsow.eu/warsow_1.51_unified.tar.gz)
md5sums=('482e2020b5463d8503f1f9fafe0c433d')

package() {
    # Create Destination Directories
    install -d $pkgdir/opt/warsow/

    # Move Data to Destination Directory
    cp -r $srcdir/warsow_15/basewsw $pkgdir/opt/warsow
    find $pkgdir/opt/warsow -type d | xargs chmod 755
    find $pkgdir/opt/warsow -type f | xargs chmod 644

    # Install Custom License: Warsow Content License
    install -Dm0644 warsow_15/docs/license.txt $pkgdir/usr/share/licenses/${pkgname}/license.txt
}
