# $Id: PKGBUILD 115364 2014-07-09 12:52:40Z fyan $
# Maintainer (Arch) : Laurent Carlier <lordheavym@gmail.com>
# Maintainer : André Silva <emulatorman@parabola.nu>

pkgname=performous-freesongs
pkgver=20100713
pkgrel=3.parabola1
pkgdesc="A collection of free songs for performous game, without nonfree songs"
url="http://performous.org/songs.html"
arch=('any')
license=('GPL' 'CCPL')
mksource=(http://sourceforge.net/projects/performous/files/ultrastar-songs-libre/3/ultrastar-songs-libre-3.zip)
source=(https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-libre-${pkgver}.tar.xz)
mkmd5sums=('350226f3f971b45666b421e2e782273b')
md5sums=('83ad7ef387473ed755b89b21f9b67f2a')

mksource() {
  # remove nonfree songs
  rm -rv ${srcdir}/songs/libre/Thor\ -\ Free\ Software\ Song/
}

package() {
  install -d ${pkgdir}/usr/share/performous/songs
  cp -r ${srcdir}/songs ${pkgdir}/usr/share/performous/songs
}