Created
August 3, 2015 12:49
-
-
Save a-andreyev/3e046a2c069a833d43fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor : Alexey Andreyev <[email protected]> | |
pkgname=esp-open-sdk-git | |
pkgver=0.1 | |
pkgrel=1 | |
pkgdesc="Free and open (as much as possible) integrated SDK for ESP8266 chips" | |
arch=('any') | |
url="https://github.com/pfalcon/esp-open-sdk" | |
license="MIT" | |
depends=('python-serial') | |
makedepends=('git' 'base-devel' 'python2' 'expat' 'ncurses' 'gperf' 'wget' 'unzip') | |
_gitroot="https://github.com/pfalcon/esp-open-sdk.git" | |
_gitname="esp-open-sdk" | |
build() { | |
cd $startdir/src | |
if [ -d $_gitname ]; then | |
msg "Updateing local repository..." | |
cd $_gitname | |
git pull origin master || return 1 | |
msg "The local files are updated." | |
cd .. | |
else | |
git clone --branch=v$pkgver --depth=1 $_gitroot | |
fi | |
msg "Git clone done or server timeout" | |
msg "Starting make..." | |
rm -rf $_gitname-build | |
cp -r $_gitname $_gitname-build | |
} | |
package { | |
cd $_gitname-build | |
make DESTDIR=$pkgdir STANDALONE=y install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment