aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kicad-library/APKBUILD
blob: c97207d4c90bd4219c6abe668956694a2ad445e5 (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
49
50
51
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=kicad-library
pkgver=5.1.4
pkgrel=0
pkgdesc="Kicad component and footprint libraries"
url="http://kicad.github.io/"
arch="x86_64"
license="GPL-3.0-or-later"
makedepends="cmake"
depends="kicad"
subpackages="$pkgname-3d:three_d"
source="
	kicad-sym.$pkgver.tgz::https://github.com/KiCad/kicad-symbols/archive/$pkgver.tar.gz
	kicad-foot.$pkgver.tgz::https://github.com/KiCad/kicad-footprints/archive/$pkgver.tar.gz
	kicad-3d.$pkgver.tgz::https://github.com/KiCad/kicad-packages3D/archive/$pkgver.tar.gz
	"
options="!check" # package only provides data files, so not tests possible

build() {
	cd "$srcdir"/kicad-symbols-$pkgver
	cmake . \
		-DCMAKE_INSTALL_PREFIX=/usr
	make

	cd "$srcdir"/kicad-footprints-$pkgver
	cmake . \
		-DCMAKE_INSTALL_PREFIX=/usr
	make

	cd "$srcdir"/kicad-packages3D-$pkgver
	cmake . \
		-DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
	cd "$srcdir"/kicad-symbols-$pkgver
	make DESTDIR="$pkgdir" install

	cd "$srcdir"/kicad-footprints-$pkgver
	make DESTDIR="$pkgdir" install
}

three_d() {
	cd "$srcdir"/kicad-packages3D-$pkgver
	make DESTDIR="$subpkgdir" install
}
sha512sums="573dd74d5d3c2b32fc12499826a9e43e5d63649f760c91e5fc3d7a8acb44b2308bbd70facc4f29d139dd895ec26f0feb1d9195b2194131e6c13397d030464fd5  kicad-sym.5.1.4.tgz
84dee71a0e52d8bb4bc8d5708a0472bab9fae4ec47553e234ed8ca4aca926fa200593d264e016e688e2c0eb1fe4a680da8b8a5e48b7dc54866241d9965d235b5  kicad-foot.5.1.4.tgz
39f6448670311055e74580cdbb196c71d184d0ce9c7b7ba849812cae3702e08273c1fcffe1ba6203ef6b5f54aa83845c4238c2b154eae44930dc411f8749201b  kicad-3d.5.1.4.tgz"