summaryrefslogtreecommitdiffstats
path: root/bin86/Pkgfile
blob: cc498679f3869018ea0f4aee2a49dc2779b405a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Description: Environnement de dev pour 8086
# URL: http://www.cix.co.uk/~mayday/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=bin86
version=0.16.17
release=3
source=(http://homepage.ntlworld.com/robert.debath/dev86/$name-$version.tar.gz\
	http://nutyx.meticul.eu/files/patchs/$name/$name-$version-x86_64-1.patch)
build() {
	cd $name-$version
	if [ "`uname -m`" == "x86_64" ]; then
		patch -Np1 -i ../bin86-0.16.17-x86_64-1.patch
	fi
	make CFLAGS="$CFLAGS -D_POSIX_SOURCE" PREFIX=/usr
	mkdir -p $PKG/usr/bin
	mkdir -p $PKG/usr/share/man/man1
	make PREFIX=$PKG/usr MANDIR=$PKG/usr/share/man/man1 install
}