wok-6.x annotate dosbox-mb/receipt @ rev 25445

itaka: fix wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 06 07:38:52 2022 +0000 (2022-09-06)
parents eb5518b1b094
children
rev   line source
pascal@17702 1 # SliTaz package receipt.
pascal@17702 2
pascal@17702 3 PACKAGE="dosbox-mb"
pascal@17702 4 VERSION="6"
pascal@17702 5 CATEGORY="system-tools"
pascal@17702 6 SHORT_DESC="DOS-emulator that uses the SDL-library with network support."
pascal@17702 7 INFO="http://home.arcor.de/h-a-l-9000/ne2kstuff/db_ne2000.html"
pascal@17702 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17702 9 LICENSE="GPL2"
pascal@17702 10 TARBALL="$PACKAGE$VERSION.tar.gz"
pascal@17702 11 WEB_SITE="http://www.dosbox.com/"
pascal@17702 12 WGET_URL="http://source.dosbox.com/mb$VERSION/$TARBALL"
pascal@17702 13 TAGS="emulator dos vm86 8086"
pascal@17702 14
pascal@17702 15 DEPENDS="xorg-libX11 libsdl alsa-lib zlib mesa libpng libsdl-net libpng libpcap"
pascal@17702 16 BUILD_DEPENDS="xorg-libX11-dev libsdl-dev libsdl-net-dev freetype-dev \
pascal@17702 17 libpng libpng-dev libpcap libpcap-dev automake autoconf libtool"
pascal@17702 18
pascal@24759 19 # What is the latest version available today?
pascal@24759 20 current_version()
pascal@24759 21 {
pascal@24759 22 wget -O - https://github.com/joncampbell123/dosbox-x/releases 2>/dev/null | \
pascal@24759 23 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
pascal@24759 24 }
pascal@24759 25
pascal@17702 26 # Rules to configure and make the package.
pascal@17702 27 compile_rules()
pascal@17702 28 {
pascal@17702 29 sed -i 's/define DOSBOX_DOS_INC_H/&\n#include <stddef.h>/' include/dos_inc.h
pascal@17702 30 ./autogen.sh
pascal@17702 31 ./configure \
pascal@17702 32 --prefix=/usr \
pascal@17702 33 --mandir=/usr/share/man \
pascal@17702 34 $CONFIGURE_ARGS &&
pascal@17702 35 make &&
pascal@17702 36 make DESTDIR=$DESTDIR install
pascal@17702 37 }
pascal@17702 38
pascal@17702 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17702 40 genpkg_rules()
pascal@17702 41 {
pascal@17702 42 mkdir -p $fs/usr/share/pixmaps \
pascal@17702 43 $fs/usr/share/applications
pascal@17702 44 cp -a $install/usr/bin $fs/usr
pascal@23854 45 cp $stuff/*.desktop $fs/usr/share/applications
pascal@23855 46 cp $stuff/*.png $fs/usr/share/pixmaps
pascal@17702 47 # Must be root to see the network interface
pascal@17702 48 chmod 4755 $fs/usr/bin/dosbox
pascal@17702 49 }