summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorABDULLATIF Mouhamadi2017-05-24 01:20:32 +0200
committerABDULLATIF Mouhamadi2017-05-24 01:20:32 +0200
commit8536ff9ab88cf8dadf5574fe843021a8c5b0bcd2 (patch)
tree343e813ea52ccda2b30ba264f150d33d9cdf50e5
downloadaur-avr-libc-tinyos.tar.gz
first commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD29
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6eae7321af3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = avr-libc-tinyos
+ pkgdesc = The C runtime library for the AVR family of microcontrollers, with TinyOS patches
+ pkgver = 1.6.7
+ pkgrel = 1
+ url = http://savannah.nongnu.org/projects/avr-libc/
+ arch = any
+ license = custom
+ depends = gcc-avr-tinyos
+ provides = avr-libc
+ options = staticlibs
+ options = !strip
+ source = http://download.savannah.gnu.org/releases/avr-libc/old-releases/avr-libc-1.6.7.tar.bz2
+ md5sums = 1ccf8078e583d527392f079082f816b0
+
+pkgname = avr-libc-tinyos
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..98a46f65dab
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: ABDULLATIF Mouhamadi <bourou01dev@gmail.com>
+
+pkgname=avr-libc-tinyos
+pkgver=1.6.7
+pkgrel=1
+pkgdesc="The C runtime library for the AVR family of microcontrollers, with TinyOS patches"
+arch=('any')
+url="http://savannah.nongnu.org/projects/avr-libc/"
+license=('custom')
+depends=('gcc-avr-tinyos')
+provides=('avr-libc')
+options=('staticlibs' '!strip')
+source=("http://download.savannah.gnu.org/releases/avr-libc/old-releases/avr-libc-${pkgver}.tar.bz2")
+md5sums=('1ccf8078e583d527392f079082f816b0')
+
+build() {
+ cd ${srcdir}/avr-libc-${pkgver}
+ ./configure --build=$(./config.guess) --host=avr --prefix=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/avr-libc-${pkgver}
+ make DESTDIR=${pkgdir} install
+
+ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
+}
+
+# vim:set ts=2 sw=2 et: