diff options
author | Deon Spengler | 2018-02-15 15:19:23 +0200 |
---|---|---|
committer | Deon Spengler | 2018-02-15 15:19:23 +0200 |
commit | 556872c753350e4a4376b95835f1265d28923820 (patch) | |
tree | 816043b5e011d692f303a217e5c6cbcbd08c84a0 | |
download | aur-556872c753350e4a4376b95835f1265d28923820.tar.gz |
initial build
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2104956dccb3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = libdfuprog-git + pkgdesc = libdfuprog is a fork of dfu-programmer built as a dynamic library + pkgver = v0.7.0.r46.g15d3d92 + pkgrel = 1 + url = https://github.com/EspoTek/libdfuprog + arch = x86_64 + license = GPL2 + depends = libusb + provides = libdfuprog + conflicts = libdfuprog + source = git+https://github.com/EspoTek/libdfuprog + sha256sums = SKIP + +pkgname = libdfuprog-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..169afe862ba8 --- /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 +} |