diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4ebeeea26d1a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = avr-fboot-git + pkgdesc = CLI host software for Peter Dannegger's fastboot Atmel AVR bootloader + pkgver = r56.255941b + pkgrel = 1 + url = https://github.com/Boregard/FBoot-Linux + arch = x86_64 + arch = i686 + arch = arm + arch = armv6h + arch = armv7h + arch = aarch64 + license = GPL2 + makedepends = git + source = avr-fboot::git+https://github.com/Boregard/FBoot-Linux.git + md5sums = SKIP + +pkgname = avr-fboot-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e59f99119224 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Jonas Deitmerg <mowfask@gmail.com> +pkgname=avr-fboot-git +pkgver=r56.255941b +pkgrel=1 +pkgdesc="CLI host software for Peter Dannegger's fastboot Atmel AVR bootloader" +arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64') +url="https://github.com/Boregard/FBoot-Linux" +license=('GPL2') +makedepends=('git') +source=("${pkgname%-git}::git+https://github.com/Boregard/FBoot-Linux.git") +md5sums=("SKIP") + +pkgver() { + cd "$srcdir/${pkgname%-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/${pkgname%-git}/src" + make +} + +package() { + cd "$srcdir/${pkgname%-git}/src" + mkdir -p $pkgdir/usr/bin + cp bootloader $pkgdir/usr/bin/${pkgname%-git} +} |