wok-current annotate dosbox/receipt @ rev 25733

Accept licence PyQt-x11-gpl, bump firmware* to 20240610, build imagemagick (merge)
author Stanislas Leduc <shann@slitaz.org>
date Fri Dec 20 16:13:23 2024 +0000 (2 weeks ago)
parents 640a2eba2511
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/"
shann@25728 11 HOST_ARCH="i486 x86_64"
Hans-G?nter@22656 12
Hans-G?nter@22656 13 TARBALL="$PACKAGE-${VERSION%.*}-${VERSION##*.}.tar.gz"
pankso@797 14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@797 15
Hans-G?nter@22656 16 DEPENDS="alsa-lib libpng libsdl libsdl-net mesa xorg-libX11 zlib"
Hans-G?nter@22656 17 BUILD_DEPENDS="libsdl-dev libsdl-net-dev xorg-libX11-dev"
pascal@15000 18
pascal@24385 19 # What is the latest version available today?
pascal@24385 20 current_version()
pascal@24385 21 {
pascal@24385 22 wget -O - https://sourceforge.net/projects/dosbox/files/dosbox/ 2>/dev/null | \
pascal@24385 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24385 24 sed '/scope="row/!d;s|.*/dosbox/||;s|/.*||;s|-|.|g;q'
pascal@24385 25 }
pascal@24385 26
pankso@797 27 # Rules to configure and make the package.
pankso@797 28 compile_rules()
pankso@797 29 {
Hans-G?nter@22656 30 sed -i 's/define DOSBOX_DOS_INC_H/&\n#include <stddef.h>/' \
Hans-G?nter@22656 31 include/dos_inc.h
Hans-G?nter@22656 32
Hans-G?nter@22656 33 ./configure \
Hans-G?nter@22656 34 --prefix=/usr \
Hans-G?nter@22656 35 --mandir=/usr/share/man \
pascal@2488 36 $CONFIGURE_ARGS &&
pascal@2488 37 make &&
pascal@15000 38 make DESTDIR=$DESTDIR install
pankso@797 39 }
pankso@797 40
pankso@797 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@797 42 genpkg_rules()
pankso@797 43 {
Hans-G?nter@22656 44 mkdir -p $fs/usr/share/pixmaps
Hans-G?nter@22656 45 mkdir -p $fs/usr/share/applications
Hans-G?nter@22656 46
Hans-G?nter@22656 47 cp -a $install/usr/bin $fs/usr
pascal@23854 48 cp $stuff/*.desktop $fs/usr/share/applications
pankso@797 49 }