wok-current view zsnes/receipt @ rev 25375
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 30 08:30:06 2022 +0000 (2022-07-30) |
parents | c365fe17a816 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="zsnes"
4 VERSION="1.51"
5 CATEGORY="games"
6 MAINTAINER="slaxemulator@gmail.com"
7 LICENSE="GPL2"
8 SHORT_DESC="Super Nintendo emulator"
9 WEB_SITE="https://www.zsnes.com/"
10 TARBALL="$PACKAGE${VERSION//./}src.tar.bz2"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="emulator nintendo snes"
14 DEPENDS="gcc-lib-base libsdl libpng ncurses mesa zlib"
15 BUILD_DEPENDS="$DEPENDS nasm libsdl-dev libpng-dev ncurses-dev mesa-dev \
16 automake autoconf zlib-dev patch"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/atest .ersion/!d;s|.*/b> *||;s|[^0-9\.].*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -ltinfo"
29 cd $src
30 patch -p1 -i $stuff/zsnes.patch
31 cd $src/src
32 sed -i 's|/usr/man/|/usr/share/man/|' Makefile*
33 ./configure --prefix=/usr \
34 --x-libraries=/usr/lib \
35 --enable-release \
36 force_arch=$ARCH \
37 $CONFIGURE_ARGS &&
38 make &&
39 make -j 1 install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/bin
46 cp -a $src/src/zsnes $fs/usr/bin
47 }