blob: 5eaa09dc20156c2aedd69d0f9db0877c3279f0d0 (
plain)
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
30
31
32
33
34
35
36
37
38
|
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
pkgname=ntvcm
pkgver=0.0.20241231
pkgrel=1
pkgdesc='NT Virtual CP/M Machine, emulates CP/M running on an 8080/Z80 processor'
_commit=7768e06f35dd550dfc7cf002d8f1227e404fbaa7
url=https://github.com/davidly/ntvcm
arch=(x86_64)
license=(CC0-1.0)
depends=(glibc)
makedepends=(git)
source=("$pkgname-$pkgver::git+$url#commit=$_commit")
b2sums=('558d5f62940f74fcea7af13d2c8c586e05414b4b02187a2c7e75bd82c8b4ddca1957006cc4060929f060cd6bed2a0a8f800982f5bef8b31e4b336f3a52b00d74')
build() {
cd "$pkgname-$pkgver"
"${CXX:-c++}" $CXXFLAGS $LDFLAGS -I. -o ntvcm ntvcm.cxx x80.cxx
}
check() {
cd "$pkgname-$pkgver"
./ntvcm -8 tests/8080EX1.COM
./ntvcm -8 tests/8080PRE.COM
./ntvcm -8 tests/TST8080.COM
./ntvcm -8 tests/TEST.COM
./ntvcm -8 tests/CPUTEST.COM
./ntvcm tests/CPUTEST.COM
./ntvcm z80test/zexall.com
./ntvcm z80test/zexdoc.com
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 -t "$pkgdir/usr/bin" ntvcm
}
|