diff options
| author | Yuval Adam <yuval@y3xz.com> | 2016-02-02 00:11:19 +0200 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2016-02-02 00:11:19 +0200 |
| commit | 9a1d6bf173d78d44ec48bc6934bbd5fa5413cc12 (patch) | |
| tree | 2e3abaff0793f86e3ee8ebf4c82627f33450ce33 /aur/lm4tools-git/PKGBUILD | |
| parent | ee04e6126808a9e20b85fc30f5b71b34099eefc5 (diff) | |
| parent | b6fe54decf5065ee97be6d3ae61657d4c6b0b781 (diff) | |
Add 'aur/lm4tools-git/' from commit 'b6fe54decf5065ee97be6d3ae61657d4c6b0b781'
git-subtree-dir: aur/lm4tools-git
git-subtree-mainline: ee04e6126808a9e20b85fc30f5b71b34099eefc5
git-subtree-split: b6fe54decf5065ee97be6d3ae61657d4c6b0b781
Diffstat (limited to 'aur/lm4tools-git/PKGBUILD')
| -rw-r--r-- | aur/lm4tools-git/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/aur/lm4tools-git/PKGBUILD b/aur/lm4tools-git/PKGBUILD new file mode 100644 index 0000000..745e088 --- /dev/null +++ b/aur/lm4tools-git/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Yuval Adam <yuv dot adm at gmail dot com> PGP-Key: CC2115C12D99D2F0 + +pkgname=lm4tools-git +pkgver=a565880 +pkgrel=1 +pkgdesc="A set of tools which enable multi-platform development on the TI Stellaris Launchpad boards" +arch=('any') +url="https://github.com/utzig/lm4tools" +license=('GPL') +depends=('libusb') +makedepends=('git' 'gcc' 'make') +provides=('lm4tools') +source=('git+https://github.com/utzig/lm4tools.git') +md5sums=('SKIP') +_gitname=lm4tools +_binaries=('lm4flash') + +pkgver() { + cd $_gitname + echo $(git describe --always | sed 's/-/./g') +} + +build() { + cd $_gitname + for DIR in $_binaries + do + cd $DIR + make + done +} + +package() { + cd $_gitname + for B in $_binaries + do + install -Dm755 $srcdir/$_gitname/$B/$B $pkgdir/usr/bin/$B + done +} |
