summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea3f196ed7387d5d8846f79561c29ac18ff96055 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Dea1993 <andrea.deangelis93@gmail.com>

pkgname=snake_pygame
pkgver=0.7.2
pkgrel=1
pkgdesc="A remake of classic Snake game written in Python"
arch=('any')
url="https://openisfreedom.eu/2013/08/13/progetto-creiamo-il-nostro-snake-in-python-con-pygame/"
license=('GPL2')
depends=('python2-pygame' 'python2-numpy' 'python2-xdg')
source=("snake_${pkgver}.7z"::"http://sourceforge.net/projects/snakepygame/files/snake_${pkgver}.7z/download")
md5sums=('608cb6f9e925adbdbbae49d20ed660bd')

package() {
	cd "${srcdir}/snake_${pkgver}"

	install -m 755 -d "${pkgdir}/usr/share/${pkgname}"
	install -m 755 -t "${pkgdir}/usr/share/${pkgname}" "snake_pygame.py"

	install -m 755 -d "${pkgdir}/usr/share/${pkgname}/Sound"
	install -m 644 -t "${pkgdir}/usr/share/${pkgname}/Sound" Sound/*

	install -m 755 -d "${pkgdir}/usr/share/${pkgname}/Immagini"
	install -m 644 -t "${pkgdir}/usr/share/${pkgname}/Immagini" Immagini/*
	
	install -m 755 -d "${pkgdir}/usr/share/applications/"
	install -m 755 -t "${pkgdir}/usr/share/applications/" "snake_pygame.desktop"
	
	install -m 755 -d "${pkgdir}/usr/bin"
	install -m 755 -t "${pkgdir}/usr/bin/" "snake_pygame"
}