summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Bazley2020-09-17 22:27:17 +0100
committerSam Bazley2020-09-17 22:27:17 +0100
commit6cdac894b32c57a4cc7c1e86976d75394bf04c4e (patch)
tree986d90d9c72538fbc73f3af4cd2f542cc4e2cce8
downloadaur-6cdac894b32c57a4cc7c1e86976d75394bf04c4e.tar.gz
init
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD23
2 files changed, 35 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..36f208c4e9f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = stm32f4-headers-git
+ pkgdesc = Headers for STM32F4 devices
+ pkgver = r6.9f5ea7421d22
+ pkgrel = 1
+ url = https://github.com/STMicroelectronics
+ arch = any
+ license = apache
+ source = git://github.com/STMicroelectronics/STM32CubeF4.git
+ md5sums = SKIP
+
+pkgname = stm32f4-headers-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..975344fe4bf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+dev=4
+pkgname="stm32f${dev}-headers-git"
+pkgver=r6.9f5ea7421d22
+pkgrel=1
+pkgdesc="Headers for STM32F${dev} devices"
+url=https://github.com/STMicroelectronics
+license=('apache')
+source=("git://github.com/STMicroelectronics/STM32CubeF${dev}.git")
+md5sums=('SKIP')
+arch=('any')
+
+pkgver() {
+ cd "${srcdir}/STM32CubeF${dev}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ mkdir -p "${pkgdir}/opt/STM32/STM32F${dev}"
+
+ install STM32CubeF${dev}/Drivers/CMSIS/Device/ST/STM32F${dev}xx/Include/* \
+ STM32CubeF${dev}/Drivers/CMSIS/Include/* \
+ "${pkgdir}/opt/STM32/STM32F${dev}"
+}