Skip to content

Instantly share code, notes, and snippets.

@Bouni
Created June 20, 2023 07:34
Show Gist options
  • Save Bouni/4a262be39cd2ab744863317dea32b584 to your computer and use it in GitHub Desktop.
Save Bouni/4a262be39cd2ab744863317dea32b584 to your computer and use it in GitHub Desktop.
Arch Linux package for Kicad nightly bin
export LD_LIBRARY_PATH=/usr/lib/kicad-nightly/lib
export KICAD_PATH=/usr/share/kicad-nightly
export KICAD_CONFIG_HOME="$HOME/.config/kicadnightly"
# Maintainer: Andy Makovec <andymakovec[at]gmail[dot]com>
# Contributor: Rachel Mant <dx-mon[at]users[dot]sourceforge[dot]net>
# Contributor: Bouni <bouni-aur[at]owee[dot]de>
pkgname=kicad-nightly-bin
_pkgname=kicad-nightly
provides=('kicad-nightly')
conflicts=('kicad-nightly')
pkgdesc='Electronic schematic and printed circuit board (PCB) design tools'
arch=('x86_64')
url='http://kicad-pcb.org/'
license=('GPLv3')
depends=('wxwidgets-gtk3' 'python' 'boost-libs' 'glew' 'curl' 'glm' 'ngspice' 'opencascade' 'python-wxpython' 'unixodbc')
options=('!strip') # strips symbols from binaries and libraries (potentially resulting in better performance and sometimes significantly less disk space usage)
optdepends=(
'kicad-library-nightly: for footprints and symbols'
'kicad-library-3d-nightly: for 3d models of components'
)
pkgrel=1
source=(
'https://launchpad.net/~kicad/+archive/ubuntu/kicad-dev-nightly/+files/kicad-nightly_202306191603+9537fd4e45~172~ubuntu23.04.1_amd64.deb'
'kicad-nightly.env'
)
pkgver=202306191603+9537fd4e45
sha256sums=(
'd4ff3db6b39edeaf548ccd55a10f86bb77c464277551913eab34f76b03d296f1'
'fce26af6b9c181a99197bfc9bc6c778561ad55a375480f4d0d73bb34078b5d18'
)
package() {
tar xf data.tar* -C "${pkgdir}"
install -d "${pkgdir}/usr/bin"
cp kicad-nightly.env "$pkgdir/usr/share/kicad-nightly/kicad-nightly.env"
cat > "$pkgdir/usr/bin/$prog-nightly" <<EOF
#!/bin/sh
. /usr/share/kicad-nightly/kicad-nightly.env
exec /usr/lib/kicad-nightly/bin/$prog
EOF
#install -Dm755 "${srcdir}"/ "${pkgdir}"/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment