Package Details: openfpgaloader-git nightly.r.0.gfab58d7-1

Git Clone URL: https://aur.archlinux.org/openfpgaloader-git.git (read-only, click to copy)
Package Base: openfpgaloader-git
Description: Universal utility for programming FPGA
Upstream URL: https://github.com/trabucayre/openFPGALoader
Licenses: Apache
Conflicts: openfpgaloader
Provides: openfpgaloader
Submitter: nobodywasishere
Maintainer: None
Last Packager: nobodywasishere
Votes: 1
Popularity: 0.000000
First Submitted: 2020-08-11 05:46 (UTC)
Last Updated: 2023-08-05 02:14 (UTC)

Required by (3)

Sources (1)

Latest Comments

Flinner commented on 2024-05-02 22:20 (UTC) (edited on 2024-05-02 22:31 (UTC) by Flinner)

# Maintainer: Margret Riegert <margret at eowyn net>
# Contributor: Filipe Laíns (FFY00) <lains@archlinux.org>

pkgname=openfpgaloader-git
pkgver=v011.0.r.26.g61b59ce
pkgrel=1
pkgdesc="Universal utility for programming FPGA"
arch=('x86_64')
url="https://github.com/trabucayre/openFPGALoader"
license=('APACHE')
depends=('libftdi' 'libftdi-compat' 'libhidapi-libusb.so' 'libudev.so')
makedepends=('cmake' 'libusb' 'systemd' 'git')
provides=('openfpgaloader')
conflicts=('openfpgaloader')
source=("$pkgname::git+$url")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --long --tags | sed -r 's/\.//;s/([^-]*-g)/r\.\1/;s/-/./g'
}

prepare() {
  sed -i 's|MODE="664", GROUP="plugdev"|MODE="666"|g' "$pkgname"/99-openfpgaloader.rules
}

build() {
  mkdir -p "$pkgname"/build
  cd "$pkgname"/build

  export CFLAGS+=" ${CPPFLAGS}"
  export CXXFLAGS+=" ${CPPFLAGS}"

  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=None \
    -DENABLE_UDEV=True \
    -DENABLE_CMSISDAP=True

  make -j$(nproc)
}

package() {
  cd "$pkgname"/build

  make DESTDIR="$pkgdir" install

  install -Dm 644 ../99-openfpgaloader.rules "$pkgdir"/usr/lib/udev/rules.d/99-openfpgaloader.rules
}

nickoe commented on 2023-08-23 21:53 (UTC)

@nobodywasishere it also fails for me:

==> Validating source files with md5sums...
    openfpgaloader-git-nightly.r.0.gfab58d7 ... Skipped
==> Extracting sources...
  -> Creating working copy of openfpgaloader-git-nightly.r.0.gfab58d7 git repo...
Switched to a new branch 'makepkg'
==> Starting prepare()...
==> Starting pkgver()...
==> Updated version: openfpgaloader-git nightly.r.0.gd5c72dc-1
==> Starting build()...
CMake Warning:
  Ignoring extra path from command line:

   ".."


CMake Error: The source directory "/tmp/makepkg/openfpgaloader-git/src/openfpgaloader-git-nightly.r.0.gd5c72dc" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
==> ERROR: A failure occurred in build().
    Aborting...

nobodywasishere commented on 2023-08-05 02:14 (UTC)

@AndrewD what is currently broken about the package? It built successfully for me.

AndrewD commented on 2023-08-04 05:47 (UTC)

Currently need to use the open-fpga-loader-git package as this PKGBUILD is broken.

ivanovp commented on 2022-03-11 21:19 (UTC)

Cannot build: ==> Starting build()... CMake Error: The source directory "/tmp/yaourt-tmp-ivanovp/aur-openfpgaloader-git/src/openfpgaloader-git-nightly.r.0.g964c7d6" does not appear to contain CMakeLists.txt.

Popolon commented on 2021-11-15 22:33 (UTC)

Thank you, it works perfectly, I also compiled this AUR PKGBUILD from an Arch Linux ARM (or ALARM) on an ARMv7 board and work nicely too. I hope we will have soon a RISC-V version of Arch Linux :).

nobodywasishere commented on 2021-11-14 22:20 (UTC)

@Popolon thank you for the catch and fix! I've actually decided to modify the PKGBUILD to follow the one for the non git version, but thank you for the contributions!

https://github.com/archlinux/svntogit-community/blob/packages/openfpgaloader/trunk/PKGBUILD

Popolon commented on 2021-11-11 16:33 (UTC) (edited on 2021-11-11 16:34 (UTC) by Popolon)

The script currently complain about missing

'spiOverJtag/spiOverJtag_xc7a35.bit'

There are lots of file now, automatically installed

The best method today is to follow the current openfpga stable process it works fine with git: This part can be put in "if pacman -Qi libudev.so" part

    cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=None \
    -DENABLE_UDEV=True \
    -DENABLE_CMSISDAP=True

and then:

 packages() {
  cd $pkgname/build/
  make DESTDIR="${pkgdir}" install
  if pacman -Qi libudev.so; 
  then 
    install -Dm664 '../99-openfpgaloader.rules' '${pkgdir}/usr/lib/udev/rules.d/99-openfpgaloader.rules#'
  fi 
 }