Package Details: gerbv 2.10.0-4

Git Clone URL: https://aur.archlinux.org/gerbv.git (read-only, click to copy)
Package Base: gerbv
Description: Gerber file (RS-274X only) viewer - w/ fork patches
Upstream URL: https://github.com/gerbv/gerbv
Keywords: design electronic gerber pcb viewer
Licenses: GPL-2.0-only
Submitter: arojas
Maintainer: envolution
Last Packager: envolution
Votes: 4
Popularity: 0.000058
First Submitted: 2023-04-01 08:15 (UTC)
Last Updated: 2025-06-10 19:32 (UTC)

Dependencies (3)

Required by (1)

Sources (1)

Latest Comments

caasper commented on 2026-05-22 13:29 (UTC) (edited on 2026-05-22 13:35 (UTC) by caasper)

just want to share my patch for this package,work for me with this installed dependencies, and also work for installing pcb2gcode

>> pacman -Q gtk2 dconf 
gtk2 2.24.33-5
dconf 0.49.0-1 
pkgname=gerbv
pkgver=2.13.0
pkgrel=4
pkgdesc="Gerber file (RS-274X only) viewer - w/ fork patches"
url='https://github.com/gerbv/gerbv'
license=('GPL-2.0-only')
arch=('x86_64')
depends=('gtk2' 'dconf' 'cmake' 'git')
optdepends=('cairo: for better graphics')
_tag='cf539c5d68ea8eebb8f31acd012301c526431027'
source=("gerbv-$pkgver.${_tag}::git+https://github.com/gerbv/gerbv.git#tag=${_tag}")
sha256sums=('bd37ebfcb967fb654ff0bf0e8d2d3c4c9bb2489dd692006389950055f4d1f9e7')

build() {
  cd $pkgname-$pkgver.$_tag
  rm -rf build
  cmake --preset linux-gnu-gcc -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build --preset linux-gnu-gcc
}

package() {
  cd $pkgname-$pkgver.$_tag
  DESTDIR="$pkgdir" cmake --install build
}

# vim:set ts=2 sw=2 et:

s-ol commented on 2025-01-07 16:08 (UTC) (edited on 2025-01-07 16:15 (UTC) by s-ol)

This builds and runs fine but the package config file is broken:

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
pkgincludedir=${prefix}/include/gerbv-2.10.0~2ad3fd

Name: libgerbv
Description: Core library for gerbv
Requires: glib-2.0 gtk+-2.0
Version: 2.10.0~2ad3fd
Libs: -L${libdir} -lgerbv
Cflags: -I${pkgincludedir}

note the ~2ad3fd suffix in the version field and pkgincludedir. This results in pkg-config --cflags-only-I libgerbv reporting -I/usr/include/gerbv-2.10.0~2ad3fd whereas the directory on disk is called /usr/include/gerv-2.1.0; as a result projects depending on gerbv will faile to build with fatal error: gerbv.h: No such file or directory.

gerbv-git solves this using this line in prepare():

  sed -i -e "s/m4_esyscmd(utils\/git-version-gen.sh [0-9.]*)/$pkgver/" configure.ac

micwoj92 commented on 2024-11-03 11:56 (UTC)

Please use spdx license identifier.

jensenr30 commented on 2023-06-29 20:41 (UTC)

It looks like the PKGBUILD was been updated. Version 2.9.8 built for me with no issues. Program runs as expected!

daprutser commented on 2023-06-11 05:12 (UTC)

This PKGBUILD does not build the latest git version, instead it builds tag 2.9.5.