summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorViacheslav Chimishuk2017-02-27 23:39:54 +0200
committerViacheslav Chimishuk2017-02-27 23:39:54 +0200
commitc02c9260cb620c151e85741a6197598f1d8bcc68 (patch)
tree5a124668def1a118e3f27086133e6cfc731ec673
downloadaur-c02c9260cb620c151e85741a6197598f1d8bcc68.tar.gz
Initial commit.
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD42
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c724b73628e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = arduino-mk-git
+ pkgdesc = A Makefile for Arduino Sketches
+ pkgver = 1.5.2.r6.g08b4f44
+ pkgrel = 1
+ url = https://github.com/sudar/Arduino-Makefile
+ arch = any
+ license = LGPL2.1
+ depends = arduino
+ depends = make
+ depends = python-pyserial
+ optdepends = screen: monitor support
+ optdepends = picocom: monitor support
+ provides = arduino-mk
+ conflicts = arduino-mk
+ source = git://github.com/sudar/Arduino-Makefile
+ md5sums = SKIP
+
+pkgname = arduino-mk-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d4cd753db29
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Viacheslav Chimishuk <vchimishuk@yandex.ru>
+
+pkgname=arduino-mk-git
+pkgrel=1
+pkgver=1.5.2.r6.g08b4f44
+provides=('arduino-mk')
+conflicts=('arduino-mk')
+pkgdesc='A Makefile for Arduino Sketches'
+arch=(any)
+url="https://github.com/sudar/Arduino-Makefile"
+license=('LGPL2.1')
+depends=('arduino' 'make' 'python-pyserial')
+optdepends=('screen: monitor support'
+ 'picocom: monitor support')
+source=("git://github.com/sudar/Arduino-Makefile")
+md5sums=('SKIP')
+
+prepare() {
+ cd "${srcdir}/Arduino-Makefile"
+
+ find -name ".gitignore" -delete
+}
+
+package() {
+ cd "${srcdir}/Arduino-Makefile"
+
+ mkdir -p "${pkgdir}/usr/bin"
+ mkdir -p "${pkgdir}/usr/share/arduino"
+ mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
+ mkdir -p "${pkgdir}/usr/share/man/man1"
+
+ install -m755 bin/ard-reset-arduino "${pkgdir}/usr/bin/"
+ install -m644 *.mk arduino-mk-vars.md "${pkgdir}/usr/share/arduino/"
+
+ cp -r README.md examples "${pkgdir}/usr/share/doc/${pkgname}/"
+ install -m644 ard-reset-arduino.1 "${pkgdir}/usr/share/man/man1/"
+}
+
+pkgver() {
+ cd "${srcdir}/Arduino-Makefile"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}