summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuldeep Singh Dhaka2016-12-19 13:16:04 +0530
committerKuldeep Singh Dhaka2016-12-20 01:26:28 +0530
commitaf2c55c6f5a0af9b6f28665ea72321c00c7b3bdf (patch)
tree49631002974733e56f18f99798a10235ce8f12ac
downloadaur-af2c55c6f5a0af9b6f28665ea72321c00c7b3bdf.tar.gz
Inital commit
-rw-r--r--.SRCINFO23
-rw-r--r--27-box0-v5.rules5
-rw-r--r--PKGBUILD43
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2be227b4873
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+# Generated by mksrcinfo v8
+# Mon Dec 19 19:55:08 UTC 2016
+pkgbase = libbox0-git
+ pkgdesc = C library for communicating with Box0 implementations
+ pkgver = 61.7555f0e
+ pkgrel = 1
+ url = https://www.madresistor.org/box0
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = cmake
+ makedepends = git
+ depends = libusb
+ provides = libbox0
+ conflicts = libbox0
+ replaces = libbox0
+ source = git+https://gitlab.com/madresistor/libbox0.git
+ source = 27-box0-v5.rules
+ md5sums = SKIP
+ md5sums = 6eacc71be1f5f212d4976bab8ddd6a13
+
+pkgname = libbox0-git
+
diff --git a/27-box0-v5.rules b/27-box0-v5.rules
new file mode 100644
index 00000000000..4ddc7d89e96
--- /dev/null
+++ b/27-box0-v5.rules
@@ -0,0 +1,5 @@
+# box0-v5
+SUBSYSTEM=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="8085", MODE:="0666"
+
+# STM32F072 in DFU mode (Firmware Update
+SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0666"
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..645cec42308
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Kuldeep Singh Dhaka <kuldeepdhaka9@gmail.com>
+
+pkgname=libbox0-git
+_pkgname=libbox0
+pkgver=61.7555f0e
+pkgrel=1
+pkgdesc="C library for communicating with Box0 implementations"
+arch=('i686' 'x86_64')
+url="https://www.madresistor.org/box0"
+license=('GPL')
+provides=(libbox0)
+conflicts=(libbox0)
+replaces=(libbox0)
+source=("git+https://gitlab.com/madresistor/$_pkgname.git" "27-box0-v5.rules")
+depends=('libusb')
+makedepends=('cmake' 'git')
+md5sums=('SKIP' '6eacc71be1f5f212d4976bab8ddd6a13')
+
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ echo "$(git rev-list --count HEAD).$(git describe --always )"
+}
+
+prepare() {
+ cd "$srcdir/$_pkgname"
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+ mkdir build
+}
+
+build() {
+ cd "$srcdir/$_pkgname/build"
+ # We are not building demo examples as they will not be installed
+ cmake -DCMAKE_INSTALL_PREFIX='/usr' -DBUILD_DEMO=NO -DBUILD_SHARED_LIBS='TRUE' ..
+ make
+}
+
+package() {
+ install -Dm644 "$srcdir/27-box0-v5.rules" "$pkgdir/usr/lib/udev/rules.d/27-box0-v5.rules"
+ make -C "$srcdir/$_pkgname/build" DESTDIR="${pkgdir}" install
+}