diff options
author | Quey-Liang Kao | 2017-01-04 00:51:03 +0800 |
---|---|---|
committer | Quey-Liang Kao | 2017-01-04 00:51:03 +0800 |
commit | 02e2d910d7c16b54f450a6e00920f09c2630a56f (patch) | |
tree | 81cd3f07c2df38487fc9d9b8badbfdb109935c73 | |
parent | b3e4b76e0ec4555dc5deb1c9d3e5bacaa2704d76 (diff) | |
download | aur-02e2d910d7c16b54f450a6e00920f09c2630a56f.tar.gz |
Tested, it should work.
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 19 | ||||
-rw-r--r-- | hifive1-sdk.install | 8 |
3 files changed, 24 insertions, 6 deletions
@@ -3,10 +3,11 @@ pkgbase = hifive1-sdk-git pkgver = v0.0.5.r785.g6df383c pkgrel = 1 url = https://www.sifive.com/ + install = hifive1-sdk.install arch = x86_64 license = APACHE makedepends = git - makedepends = base-devel + depends = libunistring source = git+https://github.com/sifive/freedom-e-sdk.git sha256sums = SKIP @@ -4,25 +4,34 @@ pkgname=hifive1-sdk-git pkgver=v0.0.5.r785.g6df383c pkgrel=1 pkgdesc="The Official SDK of the RISC-V-based HiFive Board" -depends=('') -makedepends=('git' 'base-devel') +depends=('libunistring') +makedepends=('git') arch=('x86_64') source=("git+https://github.com/sifive/freedom-e-sdk.git") url="https://www.sifive.com/" license=("APACHE") sha256sums=('SKIP') +install=hifive1-sdk.install prepare() { - cd $srcdir/$pkgname + cd $srcdir/freedom-e-sdk + git submodule update --init --recursive } build() { - cd $srcdir/$pkgname + cd $srcdir/freedom-e-sdk + unset CPPFLAGS make tools } package() { - cd $srcdir/$pkgname + cd $srcdir/freedom-e-sdk + + mkdir -p $pkgdir/opt/hifive1-sdk + cp -r toolchain $pkgdir/opt/hifive1-sdk/ + cp -r bsp $pkgdir/opt/hifive1-sdk/ + cp -r software $pkgdir/opt/hifive1-sdk/ + cp Makefile $pkgdir/opt/hifive1-sdk/ } pkgver() { diff --git a/hifive1-sdk.install b/hifive1-sdk.install new file mode 100644 index 000000000000..603a5fb6e5c9 --- /dev/null +++ b/hifive1-sdk.install @@ -0,0 +1,8 @@ +post_install () { + echo ">>> NOTE: Currently, the whole stuff are put in /opt/hifive-sdk." + echo ">>> According to the guideline, this will be fixed soon." + echo ">>> " + echo ">>> The recommanded way to use this toolchain is to copy the" + echo ">>> directory, and follow the Official Getting Start Guide. " + echo ">>> Basically, make software PROGRAM=... " +} |