mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 12:57:14 +08:00
26 lines
623 B
Bash
26 lines
623 B
Bash
pkgname=avr-libc
|
|
pkgver=1.7.1
|
|
pkgrel=1
|
|
pkgdesc="The C runtime library for the AVR family of microcontrollers"
|
|
arch=('any')
|
|
url="http://savannah.nongnu.org/projects/avr-libc/"
|
|
license=('custom')
|
|
depends=('gcc-avr')
|
|
source=(http://savannah.nongnu.org/download/avr-libc/${pkgname}-${pkgver}.tar.bz2)
|
|
md5sums=('8608061dcff075d44d5c59cb7b6a6f39')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
./configure --build=$(./config.guess) --host=avr --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
|
|
}
|
|
|
|
|