void-packages/srcpkgs/avr-libc/template

25 lines
715 B
Bash

# Template file for 'avr-libc'
pkgname=avr-libc
version=2.1.0
revision=1
short_desc="C library for use with GCC on Atmel AVR microcontrollers"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://savannah.nongnu.org/projects/avr-libc/"
distfiles="$NONGNU_SITE/avr-libc/avr-libc-${version}.tar.bz2"
checksum=0b84cee5c08b5d5cba67c36125e5aaa85251bc9accfba5773bfa87bc34b654e8
build_style=gnu-configure
hostmakedepends="avr-binutils avr-gcc"
depends="avr-binutils avr-gcc"
nostrip=yes
do_configure() {
CC=avr-gcc AR=avr-ar AS=avr-as RANLIB=avr-ranlib \
./configure --build=${XBPS_TRIPLET} --host=avr --prefix=/usr
}
post_install() {
rm ${DESTDIR}/usr/bin/avr-man
vlicense LICENSE
}