blob: 4f1517c6df9b18146266063d3ae738788c0dc4a2 (
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
49
|
# Maintainer: Eldeberen <eldeberen.aur@middleearth.fr>
_target="sh-elf"
pkgname=${_target}-binutils-casio
pkgver=2.36.1
pkgrel=3
pkgdesc="GNU binary utilities for the Casio calculators SuperH processors."
arch=('i686' 'x86_64')
url='https://www.gnu.org/software/binutils/'
license=('GPL')
depends=('binutils' 'flex' 'zlib')
makedepends=('gcc')
options=('!libtool' '!emptydirs')
source=("https://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2")
sha256sums=('5b4bd2e79e30ce8db0abd76dd2c2eae14a94ce212cfc59d3c37d23e24bc6d7a3')
prepare() {
cd "${srcdir}/binutils-${pkgver}"
# ensure a clean build
[[ -d binutils-build ]] && rm -rf binutils-build
mkdir binutils-build
}
build() {
cd "${srcdir}/binutils-${pkgver}/binutils-build"
../configure \
--prefix=/usr \
--target=sh3eb-elf \
--with-multilib-list=m3,m4-nofpu \
--program-prefix=${_target}- \
--disable-nls \
--enable-libssp \
--enable-lto
make configure-host
make
}
package() {
cd "${srcdir}/binutils-${pkgver}/binutils-build"
echo "Install on ${pkgdir}"
make DESTDIR="${pkgdir}" install-strip
# Remove info documents that conflicts with host version
rm -rf "${pkgdir}/usr/share/info"
# Remove libraries that conflict with host version
rm -rf "${pkgdir}/usr/lib"
}
|