wok-stable view stella/receipt @ rev 12030

stella: move post_install code to genpkg_rules. It's far better to run a command once on the builder than on install on each of our computer.
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Mar 06 22:40:08 2012 +0100 (2012-03-06)
parents 903504bf58f7
children c8ba921ca4dd
line source
1 # SliTaz package receipt.
3 PACKAGE="stella"
4 VERSION="3.5"
5 CATEGORY="games"
6 SHORT_DESC="A multi-platform Atari 2600 VCS emulator."
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="gcc-lib-base libsdl libpng"
9 BUILD_DEPENDS="libsdl-dev libpng-dev zlib-dev"
10 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
11 WEB_SITE="http://stella.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure \
19 --prefix=/usr &&
20 make && make DESTDIR=$DESTDIR install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications
27 cp -a $_pkg/usr/bin $fs/usr
28 cp -a $_pkg/usr/share/icons/hicolor/48x48/apps/stella.png $fs/usr/share/pixmaps
29 sed 's|Icon=stella.png|Icon=stella|' \
30 $_pkg/usr/share/applications/stella.desktop \
31 > $fs/usr/share/applications/stella.desktop
32 }