summaryrefslogtreecommitdiff
path: root/libre/avr-libc/PKGBUILD
blob: 7dad9903f200eea36ce33108f6f50d527768095f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: David P. <megver83@parabola.nu>

pkgname=avr-libc
pkgver=2.0.0
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:BSD')
depends=(avr-gcc)
options=('staticlibs' '!strip')
source=("http://download.savannah.gnu.org/releases/avr-libc/avr-libc-$pkgver.tar.bz2")
sha512sums=('fc8d062043d633350dbe05978935dcb8028257a4f1013f246af9658aef0671def19ac11577d1ee9302df68df1b8cf030b22441d96852e185db212263aacabea6')

build() {
  cd avr-libc-$pkgver
  ./configure --build=$(./config.guess) --host=avr --prefix=/usr
  make
}

package() {
  cd avr-libc-$pkgver
  make DESTDIR=$pkgdir install
  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/COPYING
}