opt/bin86/Pkgfile

28 lines
790 B
Plaintext
Raw Normal View History

2020-06-25 18:18:48 +02:00
# Description: 8086 assembler and loader which can generate 32-bit code for the 386+ processors
# URL: https://github.com/jbruchon/dev86
2021-12-13 18:41:04 +01:00
# Maintainer: CRUX System Team, core-ports at crux dot nu
2020-06-25 18:18:48 +02:00
name=bin86
version=0.16.21
2023-12-12 11:42:02 +01:00
release=3
_commit=c83297b0dc5bf79dc900c005837a31e9c27f8aba
source=(https://github.com/jbruchon/dev86/archive/$_commit/$name-$version-${_commit:0:7}.tar.gz
2021-12-13 18:41:04 +01:00
$name-x86_64.patch)
2020-06-25 18:18:48 +02:00
build() {
cd dev86-$_commit
2021-12-13 18:41:04 +01:00
patch -p1 -i $SRC/$name-x86_64.patch
sed -i '/#include "version.h"/d' as/as.c ld/io.c
cd bin86
for i in ld as man; do ln -s ../${i} .; done
2021-12-13 18:41:04 +01:00
make -j1 CFLAGS="$CFLAGS -D_POSIX_SOURCE" PREFIX=/usr
2021-12-13 18:41:04 +01:00
install -d $PKG/usr/{bin,share/man/man1}
make PREFIX=$PKG/usr MANDIR=$PKG/usr/share/man/man1 install
2023-12-12 11:42:02 +01:00
rm -r $PKG/usr/share/man/man1/{bcc,elks,elksemu}.1
2020-06-25 18:18:48 +02:00
}