summarylogtreecommitdiffstats
path: root/PKGBUILD.in
blob: 8dec57717024e5c5cf14f2dd745f0ea0bb14cd02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
}