# Maintainer: Freemor # Contributor (Arch): Giovanni Scafora # Contributor (Arch): Tom Newsom pkgname=lbreakouthd pkgver=1.0.4 pkgrel=1 pkgdesc="A breakout game with nice effects, graphics, and sounds" arch=('x86_64' 'i686' 'armv7h') url="http://lgames.sourceforge.net" license=('GPL') depends=('sdl2_image' 'sdl2_mixer' 'sdl2_ttf' 'sdl2') backup=('var/games/lbreakouthd/lbreakouthd.hscr') source=("http://downloads.sourceforge.net/lgames/${pkgname}-${pkgver/_/-}.tar.gz" 'lbreakouthd.desktop' 'lbreakouthd.png') md5sums=('579d0c667812f4412013a5665a36d9e9' '95725d685d052c580a261797aad7b2cc' '94e2fa393eb2a7d4494641dec580573b') build() { cd ${srcdir}/${pkgname}-${pkgver/_/-} ./configure --prefix=/usr \ --localstatedir=/var/games/lbreakouthd make } package() { cd ${srcdir}/${pkgname}-${pkgver/_/-} make DESTDIR=${pkgdir}/ doc_dir=/usr/share/doc install chmod -R 755 ${pkgdir}/usr chown root:games ${pkgdir}/var/games chmod 775 ${pkgdir}/var/games chown root:games ${pkgdir}/var/games/lbreakouthd chmod 755 ${pkgdir}/var/games/lbreakouthd chown root:games ${pkgdir}/var/games/lbreakouthd/lbreakouthd.hscr chmod 775 ${pkgdir}/var/games/lbreakouthd/lbreakouthd.hscr install -Dm644 ${srcdir}/lbreakouthd.png ${pkgdir}/usr/share/pixmaps/lbreakouthd.png install -Dm644 ${srcdir}/lbreakouthd.desktop ${pkgdir}/usr/share/applications/lbreakouthd.desktop }