summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAnatol Pomozov2015-06-17 08:48:19 -0700
committerAnatol Pomozov2015-06-17 08:48:19 -0700
commite987d13efbfbc424ab74e1cb6fb08ddde8868aff (patch)
tree46a1a82bd49b31f14071fca56f7a7f74db766eee /PKGBUILD
downloadaur-e987d13efbfbc424ab74e1cb6fb08ddde8868aff.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4191a238619
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Martin Schmölzer <mschmoelzer@gmail.com>
+
+pkgname=libopencm3-git
+pkgver=r1638.3a106db
+pkgrel=1
+pkgdesc='Open Source firmware library for various ARM Cortex microcontrollers'
+arch=(any)
+url='http://www.libopencm3.org/'
+license=(GPL)
+makedepends=(git arm-none-eabi-gcc arm-none-eabi-newlib python-yaml)
+options=(!strip staticlibs)
+source=(git://github.com/libopencm3/libopencm3.git)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd libopencm3
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd libopencm3
+ make lib
+}
+
+package() {
+ cd libopencm3
+ make DESTDIR="$pkgdir" PREFIX=/usr/arm-none-eabi install
+}