# Description: 8086 assembler and loader which can generate 32-bit code for the 386+ processors
# URL:         http://v3.sk/~lkundrak/dev86/
# Maintainer:  CRUX System Team, core-ports at crux dot nu

name=bin86
version=0.16.21
release=1
source=(http://mirror.netcologne.de/gentoo/distfiles/c5/bin86-0.16.21.tar.gz \
        $name-x86_64.patch)

build() {
    cd bin86-$version
    patch -p1 -i $SRC/$name-x86_64.patch
    make -j1 CFLAGS="$CFLAGS -D_POSIX_SOURCE" PREFIX=/usr
    mkdir -p $PKG/usr/{bin,man/man1}
    make PREFIX=$PKG/usr install
}
