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

Git Clone URL: (read-only, click to copy)
Package Base: openfpgaloader-git
Description: Universal utility for programming FPGA
Upstream URL:
Licenses: Apache
Conflicts: openfpgaloader
Provides: openfpgaloader
Submitter: nobodywasishere
Maintainer: nobodywasishere
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) <>

pkgdesc="Universal utility for programming FPGA"
depends=('libftdi' 'libftdi-compat' '' '')
makedepends=('cmake' 'libusb' 'systemd' 'git')

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 .. \
    -DENABLE_UDEV=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().

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!

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


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" part

    cmake .. \
    -DENABLE_UDEV=True \

and then:

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