SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "dev86"

# SliTaz package receipt.

PACKAGE="dev86"
VERSION="0.16.21"
CATEGORY="development"
SHORT_DESC="Linux 8086 development environment."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.debath.co.uk/"
WGET_URL="https://github.com/lkundrak/dev86/archive/v$VERSION.tar.gz"
TAGS="compiler C assembler 8086"

BUILD_DEPENDS="wget"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|include/malloc.h|& 2> /dev/null|' libc/malloc/Makefile
    sed -i 's|/usr/man|/usr/share/man|' man/Makefile
    sed -i 's|REFIX)/man|REFIX)/share/man|' Makefile */Makefile
    make -j 1 PREFIX=/usr &&
    make -j 1 DIST=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib $fs/usr
    cp -a $stuff/com2exe $fs/usr/bin
}

# Pre and post install commands for Tazpkg.
post_install()
{
    [ "$1" ] && return
    register=/proc/sys/fs/binfmt_misc/register
    [ -f $register ] || modprobe binfmt_misc 2> /dev/null || true
    [ -f $register ] && cat > $register <<EOT
:i86-elks:M::\x01\x03\x20\x00:\xff\xff\xff\x83:/usr/bin/elksemu:
EOT
    true
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)