summaryrefslogtreecommitdiff
path: root/user/dev86/APKBUILD
blob: 7a5170e7f222e8610f5c8064a2d5d1c8c584eb7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=dev86
pkgver=0.16.21
pkgrel=0
pkgdesc="Standalone 8086 assembler and linker"
url="https://github.com/lkundrak/dev86/"
arch="all"
options="!check"  # Just compiles stuff with bcc which we don't build
license="GPL-2.0 AND LGPL-2.0"
depends=""
makedepends=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/lkundrak/dev86/archive/v$pkgver.tar.gz"

build() {
	make -j1 as ld \
		GCCFLAG="$CFLAGS" \
		NATIVE='-DA_OUT_INCL=\"../libc/include/a.out.h\"'
}

package() {
	install -Dm755 as/as86 "$pkgdir"/usr/bin/as86
	install -Dm755 ld/ld86 "$pkgdir"/usr/bin/ld86

	install -Dm644 man/as86.1 "$pkgdir"/usr/share/man/man1/as86.1
	install -Dm644 man/ld86.1 "$pkgdir"/usr/share/man/man1/ld86.1
}

sha512sums="e51d94cecc298f860c1dcbc225d5c77a18769eb7a51f888853ca3bdb3cc6596c07d67cd9b403f7d52155716eb1708396461dc596cd02728d762d0ed5e87d054f  dev86-0.16.21.tar.gz"