wok-6.x view stella/receipt @ rev 24072

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 17:56:16 2021 +0000 (2021-07-07)
parents 122213caa46d
children d8c28080cd55
line source
1 # SliTaz package receipt.
3 PACKAGE="stella"
4 VERSION="6.1.1"
5 CATEGORY="games"
6 SHORT_DESC="A multi-platform Atari 2600 VCS emulator."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://stella-emu.github.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/stella-emu/$PACKAGE/archive/$VERSION.tar.gz"
13 TAGS="emulator atari"
15 DEPENDS="gcc83-lib-base libpng libsdl2"
16 BUILD_DEPENDS="gcc83 libpng-dev libsdl2-dev zlib-dev"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export CC=gcc-83
28 export CXX=g++-83
30 ./configure \
31 --prefix=/usr &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share/pixmaps
40 mkdir -p $fs/usr/share/applications
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/share/icons/hicolor/48x48/apps/stella.png \
44 $fs/usr/share/pixmaps
45 sed -i 's|Icon=stella.png|Icon=stella|' \
46 $install/usr/share/applications/stella.desktop
47 }