diff options
author | root <root@rshg054.dnsready.net> | 2013-07-05 01:41:29 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-05 01:41:29 -0700 |
commit | 058f9788c1e4f2b1daac706848cb51fef22c8a5d (patch) | |
tree | ef65afd46974e890a6b13d9788bf02f5ef9c6c37 /libre | |
parent | e9eb2503b10fe4c4aefbee39226c8962d72d58bd (diff) |
Fri Jul 5 01:40:49 PDT 2013
Diffstat (limited to 'libre')
-rw-r--r-- | libre/ath9k-htc-firmware/LICENSE | 33 | ||||
-rw-r--r-- | libre/ath9k-htc-firmware/PKGBUILD | 125 | ||||
-rw-r--r-- | libre/doublecmd-libre/PKGBUILD | 40 | ||||
-rw-r--r-- | libre/doublecmd-libre/doublecmd.install | 6 | ||||
-rw-r--r-- | libre/linux-libre-firmware/PKGBUILD | 48 | ||||
-rw-r--r-- | libre/virtualbox-libre-modules-lts/PKGBUILD | 4 | ||||
-rw-r--r-- | libre/virtualbox-libre-modules/PKGBUILD | 6 | ||||
-rw-r--r-- | libre/virtualbox-libre/PKGBUILD | 4 | ||||
-rw-r--r-- | libre/xtensa-unknown-elf-gcc/PKGBUILD | 73 |
9 files changed, 221 insertions, 118 deletions
diff --git a/libre/ath9k-htc-firmware/LICENSE b/libre/ath9k-htc-firmware/LICENSE new file mode 100644 index 000000000..7668bcb97 --- /dev/null +++ b/libre/ath9k-htc-firmware/LICENSE @@ -0,0 +1,33 @@ +Copyright (c) 2013 Qualcomm Atheros, Inc. + +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the + distribution. + + * Neither the name of Qualcomm Atheros nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/libre/ath9k-htc-firmware/PKGBUILD b/libre/ath9k-htc-firmware/PKGBUILD new file mode 100644 index 000000000..d323ef8d2 --- /dev/null +++ b/libre/ath9k-htc-firmware/PKGBUILD @@ -0,0 +1,125 @@ +# Maintainer: André Silva <emulatorman@lavabit.com> +# Maintainer: Márcio Silva <coadde@lavabit.com> + +pkgname=ath9k-htc-firmware +pkgver=$(LC_ALL=C date -u +%Y%m%d) +pkgrel=2 +pkgdesc='Free firmware files for the Qualcomm Atheros AR7010 and AR9271 USB 802.11n NICs' +arch=('any') +url=('http://wireless.kernel.org/en/users/Drivers/ath9k_htc') +license=('BSD') +makedepends=('git' 'cmake' 'xtensa-unknown-elf-binutils' 'xtensa-unknown-elf-gcc') +source=("git://github.com/qca/open-ath9k-htc-firmware" + 'LICENSE') +md5sums=('SKIP' + '5163b2711bc481c77045850610b7dd31') + +prepare() { + + cd $srcdir/open-ath9k-htc-firmware/target_firmware + mkdir -p build/{k2,magpie} + +} + +build() { + + cd $srcdir/open-ath9k-htc-firmware + + export CBUILD=$CHOST + export CHOST="xtensa-unknown-elf" + export CTARGET="xtensa-unknown-elf" + export CFLAGS="-mtext-section-literals -O2 -pipe --param=ssp-buffer-size=4" + export CXXFLAGS="${CFLAGS}" + + export CC=/usr/bin/xtensa-unknown-elf-gcc + export CPP=/usr/bin/xtensa-unknown-elf-cpp + export AR=/usr/bin/xtensa-unknown-elf-ar + export AS=/usr/bin/xtensa-unknown-elf-as + export LD=/usr/bin/xtensa-unknown-elf-ld + export NM=/usr/bin/xtensa-unknown-elf-nm + export OBJCOPY=/usr/bin/xtensa-unknown-elf-objcopy + export OBJDUMP=/usr/bin/xtensa-unknown-elf-objdump + export RANLIB=/usr/bin/xtensa-unknown-elf-ranlib + export STRIP=/usr/bin/xtensa-unknown-elf-strip + + cat > target_firmware/build/toolchain.cmake <<EOF +INCLUDE(CMakeForceCompiler) + +SET(CMAKE_CROSSCOMPILING) +SET(CMAKE_SYSTEM_NAME Linux) +SET(CMAKE_SYSTEM_PROCESSOR xtensa) +SET(CMAKE_HOST_SYSTEM_PROCESSOR xtensa) +SET(COMPILER_PREFIX "xtensa-unknown-elf") +SET(GNU_HOST "xtensa-unknown-elf") +SET(CMAKE_FIND_ROOT_PATH /usr/xtensa-unknown-elf) +SET(CMAKE_C_COMPILER /usr/bin/xtensa-unknown-elf-gcc) +SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY FIRST) +SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE FIRST) + +CMAKE_FORCE_C_COMPILER(/usr/bin/xtensa-unknown-elf-gcc GNU) +EOF + + cd $srcdir/open-ath9k-htc-firmware/target_firmware/build/k2 + + cmake -DCMAKE_TOOLCHAIN_FILE=$srcdir/open-ath9k-htc-firmware/target_firmware/build/toolchain.cmake "$@" -DTARGET_K2=ON ../.. + cd - + + cd $srcdir/open-ath9k-htc-firmware/target_firmware/build/magpie + + cmake -DCMAKE_TOOLCHAIN_FILE=$srcdir/open-ath9k-htc-firmware/target_firmware/build/toolchain.cmake "$@" -DTARGET_MAGPIE=ON ../.. + cd - + + cd $srcdir/open-ath9k-htc-firmware/target_firmware + + sed -i 's|/usr/bin/gcc|/usr/bin/xtensa-unknown-elf-gcc|g; + s|/usr/bin/cpp|/usr/bin/xtensa-unknown-elf-cpp|g; + s|/usr/bin/ar|/usr/bin/xtensa-unknown-elf-ar|g; + s|/usr/bin/as|/usr/bin/xtensa-unknown-elf-as|g; + s|/usr/bin/ld|/usr/bin/xtensa-unknown-elf-ld|g; + s|/usr/bin/nm|/usr/bin/xtensa-unknown-elf-nm|g; + s|/usr/bin/objcopy|/usr/bin/xtensa-unknown-elf-objcopy|g; + s|/usr/bin/objdump|/usr/bin/xtensa-unknown-elf-objdump|g; + s|/usr/bin/ranlib|/usr/bin/xtensa-unknown-elf-ranlib|g; + s|/usr/bin/strip|/usr/bin/xtensa-unknown-elf-strip|g; + s|/usr/local|/usr|g; + ' $(grep -rlI /usr/bin/gcc) \ + $(grep -rlI /usr/bin/cpp) \ + $(grep -rlI /usr/bin/ld) \ + $(grep -rlI /usr/bin/ar) \ + $(grep -rlI /usr/bin/as) \ + $(grep -rlI /usr/bin/nm) \ + $(grep -rlI /usr/bin/objcopy) \ + $(grep -rlI /usr/bin/objdump) \ + $(grep -rlI /usr/bin/ranlib) \ + $(grep -rlI /usr/bin/strip) \ + $(grep -rlI /usr/local) + + make \ + CC="${CC}" CPP="${CPP}" AR="${AR}" AS="${AS}" LD="${LD}" NM="${NM}" \ + OBJCOPY="${OBJCOPY}" OBJDUMP="${OBJDUMP}" RANLIB="${RANLIB}" STRIP="${STRIP}" \ + -C build/k2 + make \ + CC="${CC}" CPP="${CPP}" AR="${AR}" AS="${AS}" LD="${LD}" NM="${NM}" \ + OBJCOPY="${OBJCOPY}" OBJDUMP="${OBJDUMP}" RANLIB="${RANLIB}" STRIP="${STRIP}" \ + -C build/magpie + +} + +package() { + + # create firmware folder to put the free firmware files there + install -d -m755 $pkgdir/usr/lib/firmware + + cd $srcdir/open-ath9k-htc-firmware/target_firmware + + # move firmware files to firmware folder + cp build/{k2,magpie}/htc_*.fw $pkgdir/usr/lib/firmware + + # create license folder to put the license file there + install -d -m755 $pkgdir/usr/share/licenses/$pkgname + + # put LICENSE to license folder + install -m644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname + +} diff --git a/libre/doublecmd-libre/PKGBUILD b/libre/doublecmd-libre/PKGBUILD index 5eee8985c..a311ba26b 100644 --- a/libre/doublecmd-libre/PKGBUILD +++ b/libre/doublecmd-libre/PKGBUILD @@ -1,42 +1,58 @@ -# $Id$ +# vim:set ft=sh: +# $Id: PKGBUILD 93493 2013-07-04 12:38:15Z idevolder $ # Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com> # Contributor: (sirocco AT ngs.ru) _pkgbase=doublecmd pkgbase=doublecmd-libre pkgname=('doublecmd-gtk2-libre' 'doublecmd-qt-libre') -pkgver=0.5.4 -_helpver=0.5.1 -pkgrel=2.1 +pkgver=0.5.5 +_helpver=0.5.5 +pkgrel=1 url="http://doublecmd.sourceforge.net/" arch=('i686' 'x86_64') license=('GPL') install="$_pkgbase.install" +provides=("$_pkgbase") makedepends=('lazarus' 'qt4pas' 'gtk2') -optdepends=('lua: scripting' 'p7zip: support for 7zip archives') -source=("http://downloads.sourceforge.net/project/$_pkgbase/Double%20Commander%20Source/$_pkgbase-$pkgver-src.tar.gz" +optdepends=( + 'lua51: scripting' + 'p7zip: support for 7zip archives' + 'unar: support for rar archives' +) +source=( + "http://downloads.sourceforge.net/project/$_pkgbase/Double%20Commander%20Source/$_pkgbase-$pkgver-src.tar.gz" "http://downloads.sourceforge.net/project/$_pkgbase/Double%20Commander%20Source/$_pkgbase-help-$_helpver-src.tar.gz" ) -sha256sums=('480b83279adeba007ad5c54f455733fae3d9c9ee61762e6b5a63e2e67b1cd7b7' - 'd9f518e05e089b71aaa31c7d4af8177e77594a02be2c316e85e061e63b4c03e5') +sha256sums=('253ec036ec119c067f501247445acdd35d67ffd9693d246dc4e98897c6df6434' + '5c5d00187df811df0734bf751a581bce7e1bdd4cf4639b2a1101f1da8743daaf') build() { cp -a $_pkgbase-$pkgver $_pkgbase-gtk cp -a $_pkgbase-$pkgver $_pkgbase-qt cd "$srcdir/$_pkgbase-gtk" + if [ "$CARCH" = "i686" ]; then + sed -e '/fPIC/d' -i "$srcdir/$_pkgbase-gtk/components/doublecmd/doublecmd_common.lpk" + fi + sed -e 's/\(export\ lazbuild=\).*/\1"$(which\ lazbuild) --lazarusdir=\/usr\/lib\/lazarus"/' -i build.sh ./build.sh beta gtk2 cd "$srcdir/$_pkgbase-qt" + # dont use fPIC on i686 + if [ "$CARCH" = "i686" ]; then + sed -e '/fPIC/d' -i "$srcdir/$_pkgbase-qt/components/doublecmd/doublecmd_common.lpk" + fi + sed -e 's/\(export\ lazbuild=\).*/\1"$(which\ lazbuild) --lazarusdir=\/usr\/lib\/lazarus"/' -i build.sh ./build.sh beta qt } package_doublecmd-gtk2-libre() { - pkgdesc="twin-panel (commander-style) file manager (GTK)" + pkgdesc="twin-panel (commander-style) file manager (GTK), with unar recommendation" depends=('gtk2') conflicts=('doublecmd-gtk2') replaces=('doublecmd-gtk2') - provides=("doublecmd-gtk2=${pkgver}" 'doublecmd') + provides=("doublecmd-gtk2=${pkgver}") cd "$srcdir/$_pkgbase-gtk" sed -e 's/LIB_SUFFIX=.*/LIB_SUFFIX=/g' -i ./install/linux/install.sh ./install/linux/install.sh --install-prefix="$pkgdir" @@ -47,11 +63,11 @@ package_doublecmd-gtk2-libre() { } package_doublecmd-qt-libre() { - pkgdesc="twin-panel (commander-style) file manager (QT)" + pkgdesc="twin-panel (commander-style) file manager (QT), with unar recommendation" depends=('qt4pas') conflicts=('doublecmd-qt') replaces=('doublecmd-qt') - provides=("doublecmd-qt=${pkgver}" 'doublecmd') + provides=("doublecmd-qt=${pkgver}") cd "$srcdir/$_pkgbase-qt" sed -e 's/LIB_SUFFIX=.*/LIB_SUFFIX=/g' -i ./install/linux/install.sh ./install/linux/install.sh --install-prefix="$pkgdir" diff --git a/libre/doublecmd-libre/doublecmd.install b/libre/doublecmd-libre/doublecmd.install index 40d56528f..c27b5bb23 100644 --- a/libre/doublecmd-libre/doublecmd.install +++ b/libre/doublecmd-libre/doublecmd.install @@ -3,20 +3,20 @@ update_icons() { # Setup Menus if which update-desktop-database then - update-desktop-database -q /usr/share/applications + update-desktop-database -q /usr/share/applications > /dev/null 2>&1 fi # Setup MIME types if which update-mime-database then - update-mime-database /usr/share/mime >/dev/null + update-mime-database /usr/share/mime > /dev/null 2>&1 fi # Setup Icons touch -c /usr/share/icons/hicolor if which gtk-update-icon-cache then - gtk-update-icon-cache -tq /usr/share/icons/hicolor + gtk-update-icon-cache -tq /usr/share/icons/hicolor > /dev/null 2>&1 fi } diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index 4983604a4..2ddc046b6 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -2,15 +2,13 @@ # Contributor: Márcio Silva <coadde@lavabit.com> pkgname=linux-libre-firmware -_pkgver=3.9 -pkgver=$(LC_ALL=C date -u +%Y%m%d) -pkgrel=1 +pkgver=3.9 +pkgrel=2 pkgdesc='Free firmware files for Linux-libre' arch=('any') -url=('http://linux-libre.fsfla.org/' - 'http://wireless.kernel.org/en/users/Drivers/ath9k_htc') -license=('GPL2' 'BSD') -makedepends=('git' 'xtensa-unknown-elf-gcc') +url=('http://linux-libre.fsfla.org/') +license=('GPL2') +depends=('ath9k-htc-firmware') provides=('linux-firmware' 'kernel26-firmware=2.6.34.99') conflicts=('linux-firmware' @@ -38,46 +36,24 @@ replaces=('linux-firmware' 'rt2870usb-fw' 'rt2x00-rt61-fw' 'rt2x00-rt71w-fw') -source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$_pkgver-gnu/linux-libre-$_pkgver-gnu.tar.xz" - "git://github.com/qca/open-ath9k-htc-firmware") -md5sums=('120df29f88622dabf7015a22c7cc8e25' - 'SKIP') +source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$pkgver-gnu/linux-libre-$pkgver-gnu.tar.xz") +md5sums=('120df29f88622dabf7015a22c7cc8e25') -build() { - - cd $srcdir/open-ath9k-htc-firmware +package() { # create firmware folder to put the free firmware files there install -d -m755 $pkgdir/usr/lib/firmware - # fix path on configure file - sed -i 's|$PWD/../toolchain/inst|/usr|; - 's|xtensa-elf|xtensa-unknown-elf|; - ' target_firmware/configure - - # compile ath9k-htc-firmware - make -C target_firmware - - mv htc_{7010,9271}.fw $pkgdir/usr/lib/firmware - - cd $srcdir/linux-$_pkgver + cd $srcdir/linux-$pkgver - # compile free firmware files of linux-libre source code + # compile free firmware files make INSTALL_FW_PATH=$pkgdir/usr/lib/firmware firmware_install -} - -package() { - # create licenses folder to put the licenses files there install -d -m755 $pkgdir/usr/share/licenses/$pkgname - # move LICENSE.TXT from ath9k-htc firmware to linux-firmware license folder - cd $srcdir/open-ath9k-htc-firmware-1.3.2 - mv LICENSE.TXT $pkgdir/usr/share/licenses/$pkgname/LICENCE.atheros_firmware - # move WHENCE file to linux-firmware license folder - cd $srcdir/linux-$_pkgver - mv firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname + cd $srcdir/linux-$pkgver + install -m644 firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname } diff --git a/libre/virtualbox-libre-modules-lts/PKGBUILD b/libre/virtualbox-libre-modules-lts/PKGBUILD index 4378a3fdb..07cb8a71e 100644 --- a/libre/virtualbox-libre-modules-lts/PKGBUILD +++ b/libre/virtualbox-libre-modules-lts/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 93050 2013-06-23 10:32:13Z bpiotrowski $ +# $Id: PKGBUILD 93525 2013-07-05 00:46:26Z seblu $ # Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> # Contributor: Ionut Biru <ibiru@archlinux.org> # Contributor: Sébastien Luttringer <seblu@aur.archlinux.org> @@ -7,7 +7,7 @@ pkgbase=virtualbox-libre-modules-lts pkgname=('virtualbox-libre-host-modules-lts' 'virtualbox-libre-guest-modules-lts') -pkgver=4.2.14 +pkgver=4.2.16 pkgrel=1 arch=('i686' 'x86_64') url='http://virtualbox.org' diff --git a/libre/virtualbox-libre-modules/PKGBUILD b/libre/virtualbox-libre-modules/PKGBUILD index 5e11fd6df..d5a9a62bd 100644 --- a/libre/virtualbox-libre-modules/PKGBUILD +++ b/libre/virtualbox-libre-modules/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 93205 2013-06-28 17:53:08Z foutrelis $ +# $Id: PKGBUILD 93523 2013-07-05 00:43:32Z seblu $ # Maintainer: Ionut Biru <ibiru@archlinux.org> # Maintainer: Sébastien Luttringer # Maintainer (Parabola): Jorge López <jorginho@lavabit.com> @@ -6,8 +6,8 @@ pkgbase=virtualbox-libre-modules pkgname=('virtualbox-libre-host-modules' 'virtualbox-libre-guest-modules') -pkgver=4.2.14 -pkgrel=2 +pkgver=4.2.16 +pkgrel=1 arch=('i686' 'x86_64') url='http://virtualbox.org' license=('GPL') diff --git a/libre/virtualbox-libre/PKGBUILD b/libre/virtualbox-libre/PKGBUILD index d6050ed9d..7f4505883 100644 --- a/libre/virtualbox-libre/PKGBUILD +++ b/libre/virtualbox-libre/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 93046 2013-06-23 10:17:47Z bpiotrowski $ +# $Id: PKGBUILD 93521 2013-07-05 00:32:42Z seblu $ # Maintainer: Ionut Biru <ibiru@archlinux.org> # Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org> # Maintainer (Parabola): André Silva <emulatorman@lavabit.com> @@ -79,7 +79,7 @@ source=("http://download.virtualbox.org/virtualbox/$pkgver/VirtualBox-$pkgver.ta 'os_venenux.png' 'libre.patch' 'free-distros.patch') -md5sums=('be834de415adaf2f696f7a499f88b4e6' +md5sums=('c4a36e2099a317f4715cd3861cdae238' '5f85710e0b8606de967716ded7b2d351' 'ed1341881437455d9735875ddf455fbe' '58d6e5bb4b4c1c6f3f0b3daa6aaeed03' diff --git a/libre/xtensa-unknown-elf-gcc/PKGBUILD b/libre/xtensa-unknown-elf-gcc/PKGBUILD index 797f67f9e..02611d173 100644 --- a/libre/xtensa-unknown-elf-gcc/PKGBUILD +++ b/libre/xtensa-unknown-elf-gcc/PKGBUILD @@ -10,11 +10,11 @@ _sysroot="/usr/$CHOST/${_target}" pkgname=${_target}-gcc pkgver=4.8.1 pkgrel=1 -pkgdesc="The GNU Compiler Collection for Xtensa processors" +pkgdesc="The GNU Compiler Collection for the Xtensa architecture" arch=('i686' 'x86_64' 'mips64el') license=('GPL' 'LGPL' 'FDL' 'custom') url="http://gcc.gnu.org" -makedepends=("binutils>=2.23" 'libmpc' 'cloog' 'gcc-ada' 'doxygen') +makedepends=('binutils>=2.23' 'libmpc' 'cloog' 'gcc-ada' 'doxygen') checkdepends=('dejagnu' 'inetutils') options=('!libtool' '!emptydirs') source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2) @@ -33,13 +33,16 @@ prepare() { echo ${pkgver} > gcc/BASE-VER + # hack! - some configure tests for header files using "$CPP $CPPFLAGS" + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure + mkdir ${srcdir}/gcc-build } build() { cd ${srcdir}/gcc-build - ${srcdir}/${_basedir}/configure --prefix=/home/marcio/src/xtensa-elf/tools \ + ${srcdir}/${_basedir}/configure --prefix=/usr \ --target=${_target} \ --disable-multilib \ --disable-nls \ @@ -48,9 +51,9 @@ build() { --enable-languages=c \ --disable-libquadmath \ --disable-libssp \ - --with-newlib -# --disable-werror \ -# --libdir=/usr/lib --libexecdir=/usr/lib \ + --with-newlib \ + --disable-werror \ + --libdir=/usr/lib --libexecdir=/usr/lib # --mandir=/usr/share/man --infodir=/usr/share/info \ # --with-bugurl=https://labs.parabola.nu/ \ # --disable-shared --enable-threads=posix \ @@ -64,15 +67,11 @@ build() { # --with-linker-hash-style=gnu --disable-install-libiberty \ # --enable-checking=release \ make all-gcc - - # make documentation - cd ${_target}/libstdc++-v3 - make doc-man-doxygen } package() { - pkgdesc="The GNU Compiler Collection" + pkgdesc="The GNU Compiler Collection for the Xtensa architecture" depends=("gcc-libs=$pkgver-$pkgrel" 'binutils>=2.23' 'libmpc' 'cloog') groups=("${_target}-devel") install=${_target}-gcc.install @@ -81,56 +80,10 @@ package() make -j1 DESTDIR=${pkgdir} install-gcc - install -d $pkgdir/usr/share/gdb/auto-load/usr/lib - mv $pkgdir{,/usr/share/gdb/auto-load}/usr/lib/libstdc++.so.6.0.18-gdb.py - - # unfortunately it is much, much easier to install the lot and clean-up the mess... - rm $pkgdir/usr/bin/{{${_target}-,}gfortran,{${_target}-,}gccgo,gnat*} - rm $pkgdir/usr/lib/*.so* - rm $pkgdir/usr/lib/lib{atomic,gfortran,go{,begin},iberty,objc}.a - rm $pkgdir/usr/lib/libgfortran.spec - rm -r $pkgdir/usr/lib/gcc/${_target}-/${pkgver}/{ada{include,lib},finclude,include/objc} - rm $pkgdir/usr/lib/gcc/${_target}-/${pkgver}/{cc1obj{,plus},f951,gnat1,go1} - rm $pkgdir/usr/lib/gcc/${_target}-/${pkgver}/{libcaf_single,libgfortranbegin}.a - rm -r $pkgdir/usr/lib/go - rm $pkgdir/usr/share/info/{gccgo,gfortran,gnat*,libgomp,libquadmath,libitm}.info - rm $pkgdir/usr/share/locale/{de,fr}/LC_MESSAGES/libstdc++.mo - rm $pkgdir/usr/share/man/man1/{gccgo,gfortran}.1 - # many packages expect this symlinks ln -s ${_target}-gcc ${pkgdir}/usr/bin/${_target}-cc - # POSIX conformance launcher scripts for c89 and c99 - cat > $pkgdir/usr/bin/${_target}-c89 <<"EOF" -#!/bin/sh -fl="-std=c89" -for opt; do - case "$opt" in - -ansi|-std=c89|-std=iso9899:1990) fl="";; - -std=*) echo "`basename $0` called with non ANSI/ISO C option $opt" >&2 - exit 1;; - esac -done -exec ${_target}-gcc $fl ${1+"$@"} -EOF - - cat > $pkgdir/usr/bin/${_target}-c99 <<"EOF" -#!/bin/sh -fl="-std=c99" -for opt; do - case "$opt" in - -std=c99|-std=iso9899:1999) fl="";; - -std=*) echo "`basename $0` called with non ISO C99 option $opt" >&2 - exit 1;; - esac -done -exec ${_target}-gcc $fl ${1+"$@"} -EOF - - chmod 755 $pkgdir/usr/bin/${_target}-c{8,9}9 - - - # Install Runtime Library Exception - install -Dm644 ${srcdir}/${_basedir}/COPYING.RUNTIME \ - ${pkgdir}/usr/share/licenses/${_target}/RUNTIME.LIBRARY.EXCEPTION + # Remove unnecessary files and folders + rm $pkgdir/usr/share/info/* && rmdir $pkgdir/usr/share/info + rm $pkgdir/usr/share/man/man7/* && rmdir $pkgdir/usr/share/man/man7 } |