[arch-commits] Commit in gcc-uclibc/trunk (PKGBUILD)
Thomas Bächler
thomas at archlinux.org
Sun Sep 27 00:10:51 UTC 2009
Date: Saturday, September 26, 2009 @ 20:10:51
Author: thomas
Revision: 53206
Fix installation
Modified:
gcc-uclibc/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-09-26 23:30:12 UTC (rev 53205)
+++ PKGBUILD 2009-09-27 00:10:51 UTC (rev 53206)
@@ -14,7 +14,7 @@
license=('GPL' 'LGPL' 'custom')
url="http://gcc.gnu.org"
makedepends=('flex' 'binutils-uclibc>=2.19.1' 'uclibc' 'mpfr>=2.4.1' 'cloog-ppl>=0.15.3' 'kernel-headers')
-options=('!libtool')
+options=('!libtool' '!emptydirs')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-core-${pkgver}.tar.bz2
#ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-core-${_snapshot}.tar.bz2
gcc-hash-style-both.patch
@@ -60,19 +60,29 @@
package_gcc-uclibc() {
depends=('gcc-libs-uclibc' 'binutils-uclibc>=2.19.1' 'uclibc' 'mpfr>=2.4.1' 'cloog-ppl>=0.15.3' 'kernel-headers')
pkgdesc="The GNU Compiler Collection for uclibc"
+ if [ "${CARCH}" = "x86_64" ]; then
+ target="x86_64-unknown-linux-uclibc"
+ else
+ target="i686-pc-linux-uclibc"
+ fi
cd "${srcdir}/gcc-${pkgver}/build"
make -j1 DESTDIR="${pkgdir}" install || return 1
rmdir "${pkgdir}/usr/include"
rm -rf "${pkgdir}/usr/share/info"
- rm -rf "${pkgdir}/usr{,share}/man"
+ rm -rf "${pkgdir}"/usr/{,share/}man/man7
rm "${pkgdir}"/usr/${target}/lib/*.so*
}
package_gcc-libs-uclibc() {
depends=('uclibc')
pkgdesc="The GNU Compiler Collection runtime libraries for uclibc"
+ if [ "${CARCH}" = "x86_64" ]; then
+ target="x86_64-unknown-linux-uclibc"
+ else
+ target="i686-pc-linux-uclibc"
+ fi
cd "${srcdir}/gcc-${pkgver}/build"
make -j1 DESTDIR="${pkgdir}" install || return 1
@@ -81,6 +91,6 @@
rm -rf "${pkgdir}/usr/lib/gcc"
rm -rf "${pkgdir}/usr/bin"
rm -rf "${pkgdir}/usr/share/info"
- rm -rf "${pkgdir}/usr{,share}/man"
+ rm -rf "${pkgdir}"/usr/{,share/}man
rm "${pkgdir}"/usr/${target}/lib/*.a
}
More information about the arch-commits
mailing list