summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Kotta2015-08-28 15:27:29 -0500
committerJonathan Kotta2015-08-28 15:27:29 -0500
commitbd0463ace27803571142bd3a4da33c1cb92d0723 (patch)
tree7102bb8e453d32e2188acb1e8941abc3d84f1542
downloadaur-bd0463ace27803571142bd3a4da33c1cb92d0723.tar.gz
import from aur3
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD46
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5e2e9d2ad09
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = avr-libc-atmel
+ pkgdesc = The C runtime library for the AVR family of microcontrollers
+ pkgver = 1.8.0
+ pkgrel = 1
+ url = http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORLINUX.aspx
+ arch = x86_64
+ arch = i686
+ license = BSD
+ license = custom
+ depends = avr-gcc-atmel
+ provides = avr-libc=1.8.0
+ conflicts = avr-libc
+ options = !strip
+ options = staticlibs
+ source = http://distribute.atmel.no/tools/opensource/Atmel-AVR-GNU-Toolchain/3.4.4/avr-libc-1.8.0.tar.bz2
+ md5sums = 9afc252d6457957622909af9f197abe8
+
+pkgname = avr-libc-atmel
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..77af08ca388
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Andras Biro <bbandi86@gmail.com>
+# Contributor: Alex Forencich <alex at alexforencich dot com>
+# Contributor: Corrado Primier <bardo@aur.archlinux.org>
+# Contributor: danst0 <danst0@west.de>
+_pkgnamenoplatform=libc
+_pkgnamenobrand=avr-${_pkgnamenoplatform}
+pkgname=${_pkgnamenobrand}-atmel
+pkgver=1.8.0
+_atmelver=3.4.4
+pkgrel=1
+pkgdesc="The C runtime library for the AVR family of microcontrollers"
+url="http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORLINUX.aspx"
+arch=('x86_64' 'i686')
+license=('BSD' 'custom')
+depends=('avr-gcc-atmel')
+conflicts=("avr-libc")
+provides=("avr-libc=$pkgver")
+options=('!strip' 'staticlibs')
+source=("http://distribute.atmel.no/tools/opensource/Atmel-AVR-GNU-Toolchain/${_atmelver}/${_pkgnamenobrand}-${pkgver}.tar.bz2")
+md5sums=('9afc252d6457957622909af9f197abe8')
+
+_dirname="libc/avr-libc"
+
+build() {
+ #replace headers - it's not necessary, it's replaced in the tarball already
+# cd ${srcdir}/avr/
+# for i in io[0-9a-zA-Z]*.h
+# do
+# cp --verbose --force $i ../${_dirname}/include/avr
+# done
+
+ cd ${srcdir}/${_dirname}
+ ./bootstrap
+ ./configure --host=avr\
+ --prefix="/usr" \
+ --disable-versioned-doc
+ make
+}
+
+package() {
+ cd ${srcdir}/${_dirname}
+ make DESTDIR=${pkgdir} install
+ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
+}
+
+# vim:set ts=2 sw=2 et: \ No newline at end of file