Created
May 2, 2013 18:38
-
-
Save jck/5504326 to your computer and use it in GitHub Desktop.
msp430-libc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Rick W. Chen <stuffcorpse at archlinux dot us> | |
pkgname=msp430-libc | |
pkgver=20120224 | |
pkgrel=2 | |
pkgdesc="C runtime library for the MSP430 family of microcontrollers" | |
arch=('i686' 'x86_64') | |
url="http://mspgcc4.sourceforge.net/" | |
license=('custom') | |
depends=('gcc-msp430') | |
options=(!strip) | |
_mspgcc_ver=20120406 | |
_sf_base="http://sourceforge.net/projects/mspgcc/files" | |
_patches_base="${_sf_base}/Patches/LTS/${_mspgcc_ver}" | |
_patches=("${pkgname}-${pkgver}-sf3522752.patch") | |
source=("https://sourceforge.net/projects/mspgcc/files/msp430-libc/msp430-libc-${pkgver}.tar.bz2" | |
"${_patches[0]}::${_patches_base}/${_patches[0]}/download") | |
sha1sums=('d01cf0db41bff1a0ab50644cbb11bc5a1d5be172' | |
'2ca4aea9b8dcd6a199303373a8a97c7a2dd4eef6') | |
_builddir="${srcdir}/build" | |
build() { | |
cp -r "${srcdir}/${pkgname}-${pkgver}" ${srcdir}/build | |
cd ${srcdir}/build/src | |
(cd "${srcdir}/build" && | |
for patch in ${_patches[@]} ; do | |
msg "Applying ${patch}" | |
patch -p1 < "${srcdir}/${patch}" | |
done) | |
make PREFIX=/usr | |
} | |
package() { | |
cd ${srcdir}/build/src | |
mkdir -p ${pkgdir}/usr/msp430/lib | |
make -j1 install PREFIX=${pkgdir}/usr | |
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/COPYING" \ | |
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
} | |
# vim:set sts=2 ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment