blob: 538d8d272dd14598c03e65e6b499de23959df2b4 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Maintainer: jose riha <jose 1711 gmail. com>
pkgname=pydance-git
_pkgname=pydance
pkgver=r978.29a3d0f
pkgrel=2
pkgdesc="python ddr game (git)"
url="https://github.com/mbenkmann/pydance"
arch=('i686' 'x86_64')
license=('GPL')
depends=('python2-pygame')
makedepends=('git')
conflicts=(pydance)
provides=(pydance)
source=(git+https://github.com/mbenkmann/pydance
http://icculus.org/pyddr/6jan-banner.png
http://icculus.org/pyddr/6jan-bg.jpg
http://icculus.org/pyddr/6jan.ogg
http://icculus.org/pyddr/6jan.dance
http://icculus.org/pyddr/forkbomb-banner.png
http://icculus.org/pyddr/forkbomb-bg.jpg
http://icculus.org/pyddr/forkbomb.ogg
http://icculus.org/pyddr/forkbomb.dance
http://icculus.org/pyddr/synrg-bg.png
http://icculus.org/pyddr/synrg.dance
http://icculus.org/pyddr/synrg.ogg
)
md5sums=('SKIP'
'8293cc45536dcad3e6e0ccf15974527f'
'a290e913ece03317a46ff77cb7986a1d'
'1d854704c96c9af57517390b37765627'
'4bdd8d369fd5aef577a614316c0de61a'
'20d27c6cd45f2bbd4b12d8a1f211d501'
'f440c9820c5a3604f5f93be64bef7e9f'
'0ca7527a0b792fe0b597322d69e675d7'
'e62aab2b2d39adf172a74d229acedb23'
'89baa4d0af462938256222269412df33'
'70156d4215aa26ad2a823a36a12a7627'
'66df8b9049aad5bb3a1689a7943e9108')
pkgver() {
cd "$srcdir/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${_pkgname}"
sed -i '/env LOCALESDIR/s/\$(DESTDIR)//' Makefile.posix
}
build() {
cd "$srcdir/${_pkgname}"
find . -type f -perm 600 -exec chmod 644 '{}' \;
find . -type f -name "*py" -exec sed -i 's/env python/&2/' '{}' \;
python2 setup.py
}
package() {
mkdir -p ${pkgdir}/etc
cd "$srcdir/${_pkgname}"
make install DESTDIR=${pkgdir} PREFIX=/usr
find "${pkgdir}" -type f -exec chmod 644 '{}' \;
find "${pkgdir}" -type d -exec chmod 755 '{}' \;
rm -fr ${pkgdir}/usr/games
install -Dm755 desktop.pydance ${pkgdir}/usr/share/applications/pydance.desktop
install -Dm644 icon.png ${pkgdir}/usr/share/pixmaps/pydance.png
install -Dm755 pydance.py ${pkgdir}/usr/bin/pydance
chmod 755 "${pkgdir}/usr/share/games/pydance/pydance.py"
cd $srcdir
cp *.ogg *.dance *.png *.jpg ${pkgdir}/usr/share/games/pydance/songs/
rm $pkgdir/usr/bin/pydance
ln -s /usr/share/games/pydance/pydance.py $pkgdir/usr/bin/pydance
}
|