updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / reggie / PKGBUILD
blob06a938edfe97879c3437a9b5a6f8e40810ef3750
1 # Contributer: Matthew Bauer <mjbauer95@gmail.com>
2 pkgname=reggie
3 _pkgname=Reggie
4 pkgver=2
5 pkgrel=4
6 pkgdesc="Reggie! is an easy-to-use and full-featured level editor for New Super Mario Bros. Wii, created by Treeki and Tempus. (nsmbwii)"
7 arch=(any)
8 url="http://rvlution.net/$pkgname/"
9 license=('custom')
10 depends=('python' 'pyqt')
11 conflics=('reggie-git')
12 source=("http://rvlution.net/$pkgname/downloads/${_pkgname}_r${pkgver}_source.zip"
13         'reggie.sh'
14         'reggie.desktop'
15         'reggie.mime')
16 md5sums=('953e68f8301c54afc2f636f441b008ea'
17          'f2788d2c556bf37472a6eabf3f139344'
18          '559d760060d5c21bf614a6e81c098270'
19          '0e434f22292068e5394767daf7c25eff')
21 build() {
22         cd "$srcdir"
24         mkdir -p "$pkgdir/usr/share/reggie"
25         cp archive.py common.py lz77.py $pkgname.py sprites.py -r ${pkgname}data ${pkgname}extras "$pkgdir/usr/share/$pkgname"
27         mkdir -p "$pkgdir/usr/share/doc/$pkgname"
28         cp readme.txt license.txt "$pkgdir/usr/share/doc/$pkgname"
30         mkdir -p "$pkgdir/usr/share/mime/packages"
31         cp reggie.mime "$pkgdir/usr/share/mime/packages/$pkgname.xml"
33         mkdir -p "$pkgdir/usr/share/applications"
34         cp reggie.desktop "$pkgdir/usr/share/applications"
36         # our own executable
37         mkdir -p "$pkgdir/usr/bin"
38         cp ${pkgname}.sh "$pkgdir/usr/bin/$pkgname"
39         chmod +x "$pkgdir/usr/bin/$pkgname"