summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDeon Spengler2018-02-15 15:19:23 +0200
committerDeon Spengler2018-02-15 15:19:23 +0200
commit556872c753350e4a4376b95835f1265d28923820 (patch)
tree816043b5e011d692f303a217e5c6cbcbd08c84a0 /PKGBUILD
downloadaur-libdfuprog-git.tar.gz
initial build
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..169afe862ba
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Deon Spengler <deon[at]spengler[dot]co[dot]za>
+pkgname=libdfuprog-git
+pkgdesc="libdfuprog is a fork of dfu-programmer built as a dynamic library"
+pkgver=v0.7.0.r46.g15d3d92
+pkgrel=1
+arch=('x86_64')
+url="https://github.com/EspoTek/libdfuprog"
+license=('GPL2')
+depends=('libusb')
+provides=('libdfuprog')
+conflicts=('libdfuprog')
+source=(git+https://github.com/EspoTek/libdfuprog)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd libdfuprog
+ git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd ${srcdir}/libdfuprog
+ ./bootstrap.sh
+ chmod +x libdfuprog_make_linux
+ ./libdfuprog_make_linux
+}
+
+package() {
+ install -D -m 0644 ${srcdir}/libdfuprog/src/libdfuprog-0.9.so \
+ ${pkgdir}/usr/lib/libdfuprog-0.9.so
+
+ install -D -m 0644 ${srcdir}/libdfuprog/src/main.h \
+ ${pkgdir}/usr/include/libdfuprog.h
+}