# Maintainer: Martin Schmölzer pkgname=libopencm3-git pkgver=r1789.20e1ee1 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 !buildflags) source=(git://github.com/libopencm3/libopencm3.git 0001-Revert-Drop-install-target-and-documentation.patch) sha256sums=('SKIP' '7d96774d48f00d487416b73d3ff6ecc11d9e0048eadc24e721d2830ab8f7b96c') pkgver() { cd libopencm3 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { cd libopencm3 patch -p1 < ../0001-Revert-Drop-install-target-and-documentation.patch } build() { cd libopencm3 make } package() { cd libopencm3 make DESTDIR="$pkgdir" PREFIX=/usr/arm-none-eabi install }