summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRiccardo Berto2019-08-22 14:08:58 +0200
committerRiccardo Berto2019-08-22 14:08:58 +0200
commit4e52173d7f6f3a1d83547cbe9fa3ece5d8ca31fb (patch)
tree479ae094537359a84ba817b526487672662fab12 /PKGBUILD
downloadaur-4e52173d7f6f3a1d83547cbe9fa3ece5d8ca31fb.tar.gz
Initial upload: async_comm-git r47.9b83a41-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2e30ba91111
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Riccardo Berto <riccardobrt at gmail dot com>
+
+_pkgname=async_comm
+pkgname=async_comm-git
+pkgver=r47.9b83a41
+pkgrel=1
+pkgdesc="This project provides a C++ library that gives a simple interface for asynchronous serial communications over a serial port or UDP."
+arch=('x86_64')
+url="https://github.com/dpkoch/$_pkgname"
+license=('BSD-3')
+depends=('cmake' 'boost')
+makedepends=('git')
+source=("git+$url")
+sha256sums=("SKIP")
+
+pkgver() {
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd $_pkgname
+ mkdir build && cd build
+ cmake .. && make $MAKEFLAGS
+}
+
+package() {
+ cd $_pkgname
+ install -D build/libasync_comm.so $pkgdir/usr/lib/libasync_comm.so
+ install -Dm644 LICENSE.md $pkgdir/usr/share/licenses/$_pkgname/LICENSE
+}