wok annotate dega/receipt @ rev 24940

f2c: add libf2c (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 15 16:39:27 2022 +0000 (2022-04-15)
parents 20661c276bcf
children
rev   line source
slaxemulator@9459 1 # SliTaz package receipt.
slaxemulator@9459 2
slaxemulator@9459 3 PACKAGE="dega"
slaxemulator@9459 4 VERSION="1.12"
slaxemulator@9459 5 CATEGORY="games"
slaxemulator@9459 6 SHORT_DESC="A small Sega Master System and Game Gear emulator"
slaxemulator@9459 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15579 8 LICENSE="other"
slaxemulator@9459 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20682 10 WEB_SITE="https://web.archive.org/web/*/http://www.finalburn.com:80/dega/"
slaxemulator@9459 11 WGET_URL="http://www.emulinks.de/emus/$TARBALL"
pascal@13041 12 TAGS="emulator sega"
slaxemulator@9459 13
erjo@9931 14 DEPENDS="libsdl"
erjo@9931 15 BUILD_DEPENDS="nasm libsdl-dev"
erjo@9931 16
pascal@24465 17 # What is the latest version available today?
pascal@24465 18 current_version()
pascal@24465 19 {
pascal@24465 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24465 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24465 22 }
pascal@24465 23
slaxemulator@9459 24 # Rules to configure and make the package.
slaxemulator@9459 25 compile_rules()
slaxemulator@9459 26 {
slaxemulator@9459 27 cd $src
pascal@13044 28 sed -i 's/--libs.*/& -lm/' Makefile
slaxemulator@9459 29 make
slaxemulator@9459 30 }
slaxemulator@9459 31
slaxemulator@9459 32 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9459 33 genpkg_rules()
slaxemulator@9459 34 {
slaxemulator@9459 35 mkdir -p $fs/usr/bin
slaxemulator@9459 36 cp -a $src/dega $fs/usr/bin
slaxemulator@9459 37 }
slaxemulator@9459 38