Skip to content

Instantly share code, notes, and snippets.

@tokoro10g
Last active April 10, 2017 09:49
Show Gist options
  • Save tokoro10g/56363f5af88312910551198bc1c805e8 to your computer and use it in GitHub Desktop.
Save tokoro10g/56363f5af88312910551198bc1c805e8 to your computer and use it in GitHub Desktop.
PKGBUILD_gcc-arm-none-eabi-bin-4.8_2014_q3-1
# Original Maintainer: James Duley <jagduley gmail>
pkgname=gcc-arm-none-eabi-bin
pkgver=4.8_2014_q3
_pkgname=gcc-arm-none-eabi
_pkgver=${pkgver//_/-}-update
_pkgvershort=${_pkgver%-*}
_pkgvershort=${_pkgvershort/-q/q}
_pkgdate=20140805
pkgrel=1
pkgdesc="GNU Tools ARM Embedded Processors (binary distribution, includes GDB and newlib)"
arch=('i686' 'x86_64')
if [ "${CARCH}" = "x86_64" ]; then
depends=('lib32-ncurses' 'lib32-glibc')
else
depends=('ncurses' 'glibc')
fi
provides=('gcc-arm-none-eabi'
'arm-none-eabi-gcc'
'arm-none-eabi-gdb'
'arm-none-eabi-binutils'
'arm-none-eabi-newlib'
)
conflicts=('gcc-arm-none-eabi'
'arm-none-eabi-gcc'
'arm-none-eabi-gdb'
'arm-none-eabi-binutils'
'arm-none-eabi-newlib'
)
url="https://launchpad.net/gcc-arm-embedded"
source=("https://launchpad.net/gcc-arm-embedded/${pkgver%%_*}/${_pkgver}/+download/${_pkgname}-${_pkgvershort/./_}-${_pkgdate}-linux.tar.bz2")
license=('custom')
options=(!strip staticlibs)
md5sums=('acc8c8ff45f8801e2155934214309a87')
package() {
mkdir -p $pkgdir/usr
cd $srcdir/${_pkgname}-${_pkgvershort/./_}
cp -a * $pkgdir/usr
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment