wok view zsnes/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (24 months ago)
parents dd9b0bdf9963
children fbe88431f963
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 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/zip/!d;s|.*ZSNES v||;s|/.*||;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 }