summaryrefslogtreecommitdiff
path: root/~coadde/cross-binutils
diff options
context:
space:
mode:
Diffstat (limited to '~coadde/cross-binutils')
-rw-r--r--~coadde/cross-binutils/PKGBUILD17
1 files changed, 9 insertions, 8 deletions
diff --git a/~coadde/cross-binutils/PKGBUILD b/~coadde/cross-binutils/PKGBUILD
index 9a3a4b521..e7d253ed2 100644
--- a/~coadde/cross-binutils/PKGBUILD
+++ b/~coadde/cross-binutils/PKGBUILD
@@ -3,8 +3,6 @@
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
-_pkgname="binutils"
-
#+-------------------+-----------------------+-------------+------------------------------+
#| _CARCH | _os (GNU/Linux-libre) | _os (GNU) | _os (GNU/Linux-libre uClibc) |
#+-------------------+-----------------------+-------------+------------------------------+
@@ -34,9 +32,11 @@ _pkgname="binutils"
#| m68k | unknown-elf |
#+----------------+--------------------+
+_pkgname="binutils"
+
### Base FLAGS: ###
-_CARCH="i686"
-_os="pc-linux-gnu"
+_CARCH="x86_64"
+_os="unknown-linux-gnu"
_target="${_CARCH}-${_os}"
_multilib="no"
@@ -56,7 +56,7 @@ _patch_ath9k_htc_fw="no"
}
pkgname=(
- "${_target}-${_pkgname}${_multilib}${_ath9k_htc_name}"
+ "${_target}-${_pkgname}${_multilib_name}${_ath9k_htc_name}"
"${_pkgname}-common"
)
pkgver=2.23.2
@@ -113,9 +113,10 @@ build() {
_MULTILIB='--disable-multilib'
fi
- ${srcdir}/binutils-${pkgver}/configure --prefix=/opt/${pkgname[0]}/${pkgver} \
+ ${srcdir}/${_pkgname}-${pkgver}/configure --prefix=/opt/${pkgname[0]}/${pkgver} \
$_TARGET $_LIB_PATH \
--program-prefix=${_target}- \
+ --program-suffix=${_multilib_name}${_ath9k_htc_name}-${pkgver} \
--with-bugurl=https://labs.parabola.nu/ \
--enable-ld=default --enable-gold \
--enable-plugins --enable-threads \
@@ -196,7 +197,7 @@ _target-binutils() {
msg "Remove unnecessaries manuals and create links for manuals"
_man=$(ls -1A ${pkgdir}/usr/share/man/man1)
for _man_stage1 in ${_man[@]}; do
- _man_stage2=${_man_stage1/-${pkgver}/}
+ _man_stage2=${_man_stage1/${_multilib_name}${_ath9k_htc_name}-${pkgver}/}
_manuals=${_man_stage2/${_target}-/}
rm -v ${pkgdir}/usr/share/man/man1/${_man_stage1}
ln -vs ${_manuals}.gz ${pkgdir}/usr/share/man/man1/${_man_stage1}.gz
@@ -300,7 +301,7 @@ package_binutils-common() {
msg "Rename manuals"
_man=$(ls -1A ${pkgdir}/opt/${pkgname}/${pkgver}/share/man/man1)
for _man_stage1 in ${_man[@]}; do
- _man_stage2=${_man_stage1/-${pkgver}/}
+ _man_stage2=${_man_stage1/${_multilib_name}${_ath9k_htc_name}-${pkgver}/}
_manuals=${_man_stage2/${_target}-/}
mv -v ${pkgdir}/opt/${pkgname}/${pkgver}/share/man/man1/{${_man_stage1},${_manuals}}
done