summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0abd3d07924d3f2d47a000af58417d6a308086ce (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
39
40
41
42
43
44
45
46
# Maintainer: Andreas Baumann <mail@andreasbaumann.cc>
pkgname=gcc-ia16
pkgver=20231009
pkgrel=1
epoch=
pkgdesc="IA-16 (Intel 16-bit x86) port of GNU Gcc"
arch=('x86_64')
url="https://github.com/tkchia/gcc-ia16"
license=('GPL')
depends=(binutils-ia16 glibc zlib)
checkdepends=(dejagnu bc)
options=(staticlibs !distcc !ccache)
source=("https://github.com/tkchia/gcc-ia16/archive/refs/tags/$pkgver.tar.gz")
md5sums=('a21df058b213522f6d95753683773717')

build() {
	mkdir -p build-gcc
	cd build-gcc
	unset CPPFLAGS
	../gcc-ia16-$pkgver/configure \
		--target=ia16-elf \
		--enable-languages=c \
		--prefix=/usr \
		--bindir=/usr/bin \
		--libdir=/usr/lib/ia16-elf/ \
		--disable-multilib \
		--disable-nls \
		--without-headers \
		--disable-libssp \
		--without-isl \
		--disable-werror
	make all-gcc
	make all-target-libgcc
}

check() {
	# currently nope
	true
}

package() {
	cd build-gcc
	make DESTDIR="$pkgdir/" install-gcc
	make DESTDIR="$pkgdir/" install-target-libgcc
	rm -rf "$pkgdir/usr/share"
}