wok-6.x annotate dosbox/receipt @ rev 25343

updated sysstat (12.3.2 -> 12.6.0)
author Hans-G?nter Theisgen
date Mon Jul 25 07:23:20 2022 +0100 (2022-07-25)
parents 96ef6ba30769
children
rev   line source
pankso@797 1 # SliTaz package receipt.
pankso@797 2
pankso@797 3 PACKAGE="dosbox"
Hans-G?nter@22656 4 VERSION="0.74.3"
pankso@797 5 CATEGORY="system-tools"
Hans-G?nter@22656 6 TAGS="emulator dos vm86 8086"
pankso@797 7 SHORT_DESC="DOS-emulator that uses the SDL-library."
pankso@797 8 MAINTAINER="pankso@slitaz.org"
pascal@15000 9 LICENSE="GPL2"
Hans-G?nter@22656 10 WEB_SITE="https://www.dosbox.com/"
Hans-G?nter@22656 11
Hans-G?nter@22656 12 TARBALL="$PACKAGE-${VERSION%.*}-${VERSION##*.}.tar.gz"
pankso@797 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@797 14
Hans-G?nter@22656 15 DEPENDS="alsa-lib libpng libsdl libsdl-net mesa xorg-libX11 zlib"
Hans-G?nter@22656 16 BUILD_DEPENDS="libsdl-dev libsdl-net-dev xorg-libX11-dev"
pascal@15000 17
pascal@24385 18 # What is the latest version available today?
pascal@24385 19 current_version()
pascal@24385 20 {
pascal@24385 21 wget -O - https://sourceforge.net/projects/dosbox/files/dosbox/ 2>/dev/null | \
pascal@24385 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24385 23 sed '/scope="row/!d;s|.*/dosbox/||;s|/.*||;s|-|.|g;q'
pascal@24385 24 }
pascal@24385 25
pankso@797 26 # Rules to configure and make the package.
pankso@797 27 compile_rules()
pankso@797 28 {
Hans-G?nter@22656 29 sed -i 's/define DOSBOX_DOS_INC_H/&\n#include <stddef.h>/' \
Hans-G?nter@22656 30 include/dos_inc.h
Hans-G?nter@22656 31
Hans-G?nter@22656 32 ./configure \
Hans-G?nter@22656 33 --prefix=/usr \
Hans-G?nter@22656 34 --mandir=/usr/share/man \
pascal@2488 35 $CONFIGURE_ARGS &&
pascal@2488 36 make &&
pascal@15000 37 make DESTDIR=$DESTDIR install
pankso@797 38 }
pankso@797 39
pankso@797 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@797 41 genpkg_rules()
pankso@797 42 {
Hans-G?nter@22656 43 mkdir -p $fs/usr/share/pixmaps
Hans-G?nter@22656 44 mkdir -p $fs/usr/share/applications
Hans-G?nter@22656 45
Hans-G?nter@22656 46 cp -a $install/usr/bin $fs/usr
pascal@23854 47 cp $stuff/*.desktop $fs/usr/share/applications
pankso@797 48 }