wok-6.x annotate gens-gs/receipt @ rev 25481
created recipe for py3k-cffi
author | Hans-G?nter Theisgen |
---|---|
date | Mon Oct 17 07:42:01 2022 +0100 (2022-10-17) |
parents | b01314c762e9 |
children |
rev | line source |
---|---|
slaxemulator@9595 | 1 # SliTaz package receipt. |
slaxemulator@9595 | 2 |
slaxemulator@9595 | 3 PACKAGE="gens-gs" |
slaxemulator@9595 | 4 VERSION="2.15.5_gs_r7" |
slaxemulator@9595 | 5 CATEGORY="games" |
slaxemulator@9595 | 6 SHORT_DESC="An emulator for Sega Genesis, Sega CD and 32X." |
slaxemulator@9595 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15215 | 8 LICENSE="GPL2" |
slaxemulator@9595 | 9 _VERSION=gs-r7 |
slaxemulator@9595 | 10 TARBALL="Gens-${_VERSION}.tar.gz" |
slaxemulator@9595 | 11 WEB_SITE="http://info.sonicretro.org/Gens/GS" |
pascal@24978 | 12 WGET_URL="https://retrocdn.net/images/6/6d/$TARBALL" |
pascal@13041 | 13 TAGS="emulator sega" |
slaxemulator@9595 | 14 |
slaxemulator@10334 | 15 DEPENDS="gtk+ libsdl libglu-mesa" |
slaxemulator@10334 | 16 BUILD_DEPENDS="gtk+-dev libsdl libsdl-dev nasm autoconf automake" |
slaxemulator@10334 | 17 |
pascal@24759 | 18 # What is the latest version available today? |
pascal@24759 | 19 current_version() |
pascal@24759 | 20 { |
pascal@24759 | 21 wget -O - https://raw.githubusercontent.com/lutris/gens/master/ChangeLog.txt 2>/dev/null | \ |
pascal@24759 | 22 sed '/new in Gens/!d;s|.*v||;s|/.*|_gs_r7|;q' |
pascal@24759 | 23 } |
pascal@24759 | 24 |
slaxemulator@9595 | 25 # Rules to configure and make the package. |
slaxemulator@9595 | 26 compile_rules() |
slaxemulator@9595 | 27 { |
slaxemulator@9595 | 28 cd $src |
slaxemulator@9595 | 29 patch -Np1 -i $stuff/gens-gtk.patch || return 1 |
slaxemulator@9595 | 30 chmod +x install-sh |
slaxemulator@10334 | 31 ./configure $CONFIGURE_ARGS |
slaxemulator@9595 | 32 find -name "Makefile" | xargs sed -i 's|-DGTK_DISABLE_DEPRECATED||g' |
slaxemulator@9595 | 33 make -j1 && make -j1 DESTDIR=$DESTDIR install |
slaxemulator@9595 | 34 } |
slaxemulator@9595 | 35 |
slaxemulator@9595 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9595 | 37 genpkg_rules() |
slaxemulator@9595 | 38 { |
slaxemulator@9595 | 39 mkdir -p $fs/usr/share $fs/usr/lib/mdp |
pascal@15215 | 40 cp -a $install/usr/bin $fs/usr |
pascal@15215 | 41 cp -a $install/usr/lib/mdp/*.so $fs/usr/lib/mdp |
pascal@15215 | 42 cp -a $install/usr/share/applications $fs/usr/share |
pascal@15215 | 43 cp -a $install/usr/share/gens $fs/usr/share |
slaxemulator@9595 | 44 } |
slaxemulator@9595 | 45 |