wok view vice/receipt @ rev 24545

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 24 19:32:16 2022 +0000 (2022-02-24)
parents ace9ad9d5bb1
children 00bff3684d8a
line source
1 # SliTaz package receipt.
3 PACKAGE="vice"
4 VERSION="3.3"
5 CATEGORY="games"
6 SHORT_DESC="Commodore 64 and others emulator."
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.viceteam.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/vice-emu/files/releases/$TARBALL"
14 DEPENDS="gtk+ libsdl2 readline"
15 BUILD_DEPENDS="gtk+-dev libsdl2-dev readline-dev xa xorg-bdftopcf xorg-mkfontdir"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/vice-emu/files/releases/ 2>/dev/null | \
21 sed '/scope="row/!d;/tar/!d;s|.*/vice-||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|uname -m|echo i486|' src/lib/liblame/Makefile.unix
28 sed -i 's/cp .(fontsdir)/echo &/' data/fonts/Makefile.*
30 ./configure \
31 --prefix=/usr \
32 $CONFIGURE_ARGS &&
33 make $MAKEFLAGS &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/
42 cp -a $install/usr/bin $fs/usr/
43 cp -a $install/usr/lib $fs/usr/
44 }