le PKGBUILD :
Code : Tout sélectionner
# Maintainer: Marc Poiroud <marciun@free.fr>
# Contributor: Marc poiroud <marciun@free.fr>
pkgname=megamario
pkgver=1.5
pkgrel=2
pkgdesc="Mario Bros Clone"
url="http://mmario.sourceforge.net/"
license="GPL"
depends=('sdl' 'sdl_mixer' 'sdl_ttf' 'sdl_image' 'freetype2')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
install=
source=(http://ovh.dl.sourceforge.net/sourceforge/mmario/MegaMario_v${pkgver}_w32_linux.zip)
md5sums=(45853daeba399fe67bcb289d3543641d)
build() {
cd $startdir/src/
sed -e 's:/home/opt:/usr:g' -i Makefile
make || return 1
make PREFIX=$startdir/pkg/usr install
install -D -m 644 ../megamario.desktop $startdir/pkg/usr/share/applications/megamario.desktop
( cd $startdir/pkg/usr/share
install -D -m 644 megamario/gfx/characters/big/player3r.png pixmaps/megamario.png )
}
Code : Tout sélectionner
[Desktop Entry]
Encoding=UTF-8
Exec=megamario %u
Icon=/usr/share/pixmaps/megamario.png
Type=Application
Categories=Game;ArcadeGame;
Name=megamario
GenericName=Mario Bros clone
GenericName[fr]=Clone de Mario Bros
StartupNotify=false
Code : Tout sélectionner
$ yaourt -Qi megamario
Name : megamario
Version : 1.5-2
Groups : None
Packager : Marc Poiroud <marciun@free.fr>
URL : http://mmario.sourceforge.net/
License : GPL
Architecture : i686
Size : 3741511
Build Date : Sun Nov 5 20:37:40 2006 UTC
Install Date : Sun Nov 5 20:39:39 2006 UTC
Install Script : No
Reason: : explicitly installed
Provides : None
Depends On : freetype2 sdl sdl_image sdl_mixer sdl_ttf
Required By : None
Conflicts With : None
Description : Mario Bros Clone
EDIT : mise à jour du fichier .desktop et de l'icone.