core/bin86/PKGBUILD
2010-11-11 23:49:29 +01:00

32 lines
970 B
Bash

#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=bin86
pkgver=0.16.17
pkgrel=4
pkgdesc="A complete 8086 assembler and loader"
arch=(i686 x86_64)
license=('GPL')
url="http://www.debath.co.uk/"
groups=('base-devel')
depends=('glibc')
source=(http://homepage.ntlworld.com/robert.debath/dev86/$pkgname-$pkgver.tar.gz
bin86-0.16.17-x86_64-1.patch)
md5sums=('c9e8d72dd2e7457b52d0e3164fc199a1' '92bdce7b0655cd2e9f83c83fc56d128e')
build() {
cd $srcdir/$pkgname-$pkgver
if [ "$CARCH" = "x86_64" ]; then
patch -Np1 -i ../bin86-0.16.17-x86_64-1.patch || return 1
fi
make PREFIX=/usr || return 1
mkdir -p $pkgdir/usr/bin $pkgdir/usr/share/man/man1
make PREFIX=$pkgdir/usr MANDIR=$pkgdir/usr/share/man/man1 install
}