wok annotate mmx-emu/receipt @ rev 25031

Add fatcat
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 20 09:25:51 2022 +0000 (2022-05-20)
parents bb009a6ef036
children
rev   line source
pascal@2371 1 # SliTaz package receipt.
pascal@2371 2
pascal@2371 3 PACKAGE="mmx-emu"
pascal@2371 4 VERSION="0.6"
pascal@2371 5 CATEGORY="system-tools"
pascal@2371 6 SHORT_DESC="MMX/EMMX/3Dnow! emulator."
pascal@2371 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15583 8 LICENSE="GPL2"
pascal@2371 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@2371 10 WEB_SITE="http://www-sop.inria.fr/members/Sylvain.Pion/progs/mmx-emu/"
pascal@2371 11 WGET_URL="${WEB_SITE}$TARBALL"
pascal@13041 12 TAGS="emulator MMX 3Dnow"
pascal@2371 13
pascal@24425 14 # What is the latest version available today?
pascal@24425 15 current_version()
pascal@24425 16 {
pascal@24425 17 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 18 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24425 19 }
pascal@24425 20
pascal@2371 21 # Rules to configure and make the package.
pascal@2371 22 compile_rules()
pascal@2371 23 {
pascal@2371 24 cd $src
pascal@2371 25 make
pascal@2371 26 }
pascal@2371 27
pascal@2371 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2371 29 genpkg_rules()
pascal@2371 30 {
pascal@2371 31 mkdir -p $fs/usr/lib
pascal@2371 32 cp -a $src/libmmxemu.so $fs/usr/lib
pascal@2371 33 }
pascal@2371 34
pascal@2371 35 # Pre and post install commands for Tazpkg.
pascal@2371 36 post_install()
pascal@2371 37 {
pascal@2371 38 cat << EOT
pascal@2371 39 To make it work on the program "program", just type:
pascal@2371 40
pascal@2371 41 LD_PRELOAD=/usr/lib/libmmxemu.so program
pascal@2371 42 EOT
pascal@2371 43 }