Created a side-by-side installable nightly of the KiCAD libraries - KiCAD-Symbols 5.1.6-581-g316b73ac, KiCAD-Footprints 5.1.6-195-gb5297d14 and KiCAD-Packages3D 5.1.7-10-gd8b7e8c5

This commit is contained in:
dx-mon 2020-10-16 18:05:15 +01:00
commit 2e39ec8164
No known key found for this signature in database
GPG key ID: 9DA7A6AD14274BA4
5 changed files with 194 additions and 0 deletions

23
.SRCINFO Normal file
View file

@ -0,0 +1,23 @@
pkgbase = kicad-library-nightly
pkgdesc = KiCAD component and footprint libraries
pkgver = 5.99.0_4092_g1ee3df61c9
pkgrel = 1
url = http://kicad-pcb.org/
arch = any
license = GPL
makedepends = git
makedepends = cmake
options = !strip
source = git+https://gitlab.com/kicad/libraries/kicad-symbols.git#commit=316b73ac
source = git+https://gitlab.com/kicad/libraries/kicad-footprints.git#commit=b5297d14
source = git+https://gitlab.com/kicad/libraries/kicad-packages3D.git#commit=d8b7e8c5
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
pkgname = kicad-library-nightly
pkgdesc = Kicad component and footprint libraries
pkgname = kicad-library-3d-nightly
pkgdesc = Kicad 3D render model libraries

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
PKGBUILD.part

48
PKGBUILD Normal file
View file

@ -0,0 +1,48 @@
# Maintainer: Rachel Mant <dx-mon@users.sourceforge.net>
pkgbase=kicad-library-nightly
pkgname=('kicad-library-nightly' 'kicad-library-3d-nightly')
pkgver=5.99.0_4092_g1ee3df61c9
pkgrel=1
pkgdesc='KiCAD component and footprint libraries'
arch=('any')
url='http://kicad-pcb.org/'
license=('GPL')
makedepends=('git' 'cmake')
options=('!strip')
source=(
'git+https://gitlab.com/kicad/libraries/kicad-symbols.git'#commit=316b73ac
'git+https://gitlab.com/kicad/libraries/kicad-footprints.git'#commit=b5297d14
'git+https://gitlab.com/kicad/libraries/kicad-packages3D.git'#commit=d8b7e8c5
)
sha256sums=('SKIP' 'SKIP' 'SKIP')
build_package()
{
cd "$1"
cmake . -DCMAKE_INSTALL_PREFIX=/usr/lib/kicad-nightly
make
}
build()
{
build_package "$srcdir/kicad-symbols"
build_package "$srcdir/kicad-footprints"
build_package "$srcdir/kicad-packages3D"
}
package_kicad-library-nightly()
{
pkgdesc="Kicad component and footprint libraries"
cd "$srcdir/kicad-symbols"
make DESTDIR="$pkgdir" install
cd "$srcdir/kicad-footprints"
make DESTDIR="$pkgdir" install
}
package_kicad-library-3d-nightly()
{
pkgdesc="Kicad 3D render model libraries"
cd "$srcdir/kicad-packages3D"
make DESTDIR="$pkgdir" install
}

48
PKGBUILD.in Normal file
View file

@ -0,0 +1,48 @@
# Maintainer: Rachel Mant <dx-mon@users.sourceforge.net>
pkgbase=kicad-library-nightly
pkgname=('kicad-library-nightly' 'kicad-library-3d-nightly')
pkgver=@KICAD_VERSION@
pkgrel=1
pkgdesc='KiCAD component and footprint libraries'
arch=('any')
url='http://kicad-pcb.org/'
license=('GPL')
makedepends=('git' 'cmake')
options=('!strip')
source=(
'git+https://gitlab.com/kicad/libraries/kicad-symbols.git'#commit=@SYMBOL_HASH@
'git+https://gitlab.com/kicad/libraries/kicad-footprints.git'#commit=@FOOTPRINT_HASH@
'git+https://gitlab.com/kicad/libraries/kicad-packages3D.git'#commit=@PACKAGE3D_HASH@
)
sha256sums=('SKIP' 'SKIP' 'SKIP')
build_package()
{
cd "$1"
cmake . -DCMAKE_INSTALL_PREFIX=/usr/lib/kicad-nightly
make
}
build()
{
build_package "$srcdir/kicad-symbols"
build_package "$srcdir/kicad-footprints"
build_package "$srcdir/kicad-packages3D"
}
package_kicad-library-nightly()
{
pkgdesc="Kicad component and footprint libraries"
cd "$srcdir/kicad-symbols"
make DESTDIR="$pkgdir" install
cd "$srcdir/kicad-footprints"
make DESTDIR="$pkgdir" install
}
package_kicad-library-3d-nightly()
{
pkgdesc="Kicad 3D render model libraries"
cd "$srcdir/kicad-packages3D"
make DESTDIR="$pkgdir" install
}

74
updatePackage Executable file
View file

@ -0,0 +1,74 @@
#!/bin/bash
_update()
{
cd kicad-symbols
git fetch
cd ../kicad-footprints
git fetch
cd ../kicad-packages3D
git fetch
cd ..
}
_symbolVersion()
{
cd kicad-symbols
git describe --tag
cd ..
}
_symbolHash()
{
cd kicad-symbols
git rev-parse --short master
cd ..
}
_footprintVersion()
{
cd kicad-footprints
git describe --tag
cd ..
}
_footprintHash()
{
cd kicad-footprints
git rev-parse --short master
cd ..
}
_package3dVersion()
{
cd kicad-packages3D
git describe --tag
cd ..
}
_package3dHash()
{
cd kicad-packages3D
git rev-parse --short master
cd ..
}
_buildPKGBUILD()
{
sed -e "s/@SYMBOL_HASH@/$(_symbolHash)/" \
-e "s/@FOOTPRINT_HASH@/$(_footprintHash)/" \
-e "s/@PACKAGE3D_HASH@/$(_package3dHash)/" \
PKGBUILD.part > PKGBUILD
}
_updateSRCINFO()
{
makepkg --printsrcinfo > .SRCINFO
}
_update
_buildPKGBUILD
_updateSRCINFO
git add PKGBUILD .SRCINFO
git commit -m "Bump to KiCAD-Symbols $(_symbolVersion), KiCAD-Footprints $(_footprintVersion) and KiCAD-Packages3D $(_package3dVersion)"