blob: 311da43e2c60419692d3f252f9efb1d6c00e2928 (
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
47
48
|
# Maintainer: Sebastiaan de Schaetzen <sebastiaan.de.schaetzen@gmail.com>
pkgname=binutils-ia16
pkgver=20221221
pkgrel=2
epoch=
pkgdesc="IA-16 (Intel 16-bit x86) port of GNU Binutils"
arch=('x86_64')
url="https://github.com/tkchia/binutils-ia16"
license=('GPL')
depends=(glibc zlib)
checkdepends=(dejagnu bc)
options=(staticlibs !distcc !ccache)
source=("https://github.com/tkchia/binutils-ia16/archive/refs/tags/$pkgver.tar.gz")
md5sums=('36d72eed7f40a91170ec2d7bd8b30ca2')
build() {
mkdir -p build-binutils
cd build-binutils
unset CPPFLAGS
../binutils-ia16-$pkgver/configure \
--prefix=/usr \
--target=ia16-elf \
--enable-ld=default \
--enable-gold=yes \
--enable-targets=ia16-elf \
--enable-x86-hpa-segelf=yes \
--bindir=/usr/bin \
--libdir=/usr/lib/ia16-elf \
--disable-gdb \
--disable-libdecnumber \
--disable-readline \
--disable-sim \
--disable-nls \
--disable-werror
make
}
check() {
cd build-binutils
# some debugging tests fail currently
make -k check || :
}
package() {
cd build-binutils
make DESTDIR="$pkgdir/" install
rm -rf "$pkgdir/usr/share"
}
|