diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -1,10 +1,10 @@ # Maintainer: Quey-Liang Kao<s101062801@m101.nthu.edu.tw> pkgname=hifive1-sdk-git -pkgver=r94.b7c778c +pkgver=r97.3a01ac1 pkgrel=1 -pkgdesc="The Official SDK of the RISC-V-based HiFive Board" -depends=('libunistring>=0.9.7' 'flex-git') +pkgdesc="The Official SDK of the RISC-V-based HiFive1 Board (and Arty)" +depends=('flex-git' 'libunistring') makedepends=('git') arch=('x86_64') source=("git+https://github.com/sifive/freedom-e-sdk.git") @@ -28,11 +28,16 @@ build() { package() { 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/ + mkdir -p $pkgdir/opt + cp -r toolchain $pkgdir/opt/hifive1-sdk + + mkdir -p $pkgdir/usr/share/hifive1-sdk + cp -r bsp $pkgdir/usr/share/hifive1-sdk/ + cp -r software $pkgdir/usr/share/hifive1-sdk/ + cp Makefile $pkgdir/usr/share/hifive1-sdk/.Makefile + cat $pkgdir/usr/share/hifive1-sdk/.Makefile | sed "s/^toolchain_dest.*/toolchain_dest := \/opt\/hifive1-sdk/" > $pkgdir/usr/share/hifive1-sdk/Makefile + mv $pkgdir/usr/share/hifive1-sdk/bsp/env/common.mk $pkgdir/usr/share/hifive1-sdk/bsp/env/.common.mk + cat $pkgdir/usr/share/hifive1-sdk/bsp/env/.common.mk | sed "s/^TOOL_DIR.*/TOOL_DIR = \/opt\/hifive1-sdk\/bin/" > $pkgdir/usr/share/hifive1-sdk/bsp/env/common.mk } pkgver() { |