Skip to content

Commit

Permalink
upg(binutils-z80): 2.43; fix(binutils-z80): remove conflicting files …
Browse files Browse the repository at this point in the history
…and utilize multithreading during build (#57)

* Remove conflicting library directory

* Properly use `$NCPU`

* Update to 2.43
  • Loading branch information
atirut-w authored Jan 31, 2025
1 parent 7ead80a commit 0dfa818
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions binutils-z80/lure.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name='binutils-z80'
version='2.42'
version='2.43'
release='1'
desc='Cross-build binary utilities for z80'
homepage='https://www.gnu.org/software/binutils/'
Expand All @@ -10,27 +10,28 @@ license=('GPL-2.0-only')
deps=('gmp' 'mpfr')
build_deps_fedora=('gmp-devel' 'mpfr-devel' 'texinfo' 'make' 'gcc' 'perl' 'bison')

sources=('https://ftp.gnu.org/gnu/binutils/binutils-2.42.tar.xz')
sources=('https://ftp.gnu.org/gnu/binutils/binutils-2.43.tar.xz')
checksums=('SKIP')

prepare() {
cd "$srcdir/binutils-2.42"
cd "$srcdir/binutils-2.43"
# Turn off dev mode (very strict compiler flags)
sed -i '/^development=/s/true/false/' bfd/development.sh
}

build() {
cd "$srcdir/binutils-2.42"
cd "$srcdir/binutils-2.43"
./configure --target=z80-elf --prefix=/usr
make -j$(NCPU)
make -j$NCPU
}

package() {
cd "$srcdir/binutils-2.42"
cd "$srcdir/binutils-2.43"
make DESTDIR="$pkgdir" install

# Clean up conflicting files
rm -r "$pkgdir/usr/lib/"
rm -r "$pkgdir/usr/lib64/"
rm -r "$pkgdir/usr/share/info/"
rm -r "$pkgdir/usr/share/locale/"
}

0 comments on commit 0dfa818

Please sign in to comment.