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