[arch-commits] Commit in kicad-library/trunk (PKGBUILD)
Kyle Keen
kkeen at archlinux.org
Mon Jul 23 01:07:38 UTC 2018
Date: Monday, July 23, 2018 @ 01:07:37
Author: kkeen
Revision: 362910
upgpkg: kicad-library 5.0.0-1
Modified:
kicad-library/trunk/PKGBUILD
----------+
PKGBUILD | 61 +++++++++++++++++++++++--------------------------------------
1 file changed, 23 insertions(+), 38 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-23 00:38:39 UTC (rev 362909)
+++ PKGBUILD 2018-07-23 01:07:37 UTC (rev 362910)
@@ -3,61 +3,46 @@
pkgbase=kicad-library
pkgname=('kicad-library' 'kicad-library-3d')
-pkgver=4.0.7
+pkgver=5.0.0
pkgrel=1
pkgdesc="Kicad component and footprint libraries"
arch=('any')
url="https://github.com/KiCad/kicad-library"
license=('GPL')
-makedepends=('cmake' 'tar')
+makedepends=('cmake')
options=('!strip')
-source=("http://downloads.kicad-pcb.org/libraries/kicad-footprints-$pkgver.tar.gz"
- "http://downloads.kicad-pcb.org/libraries/kicad-library-$pkgver.tar.gz")
-noextract=("kicad-footprints-$pkgver.tar.gz")
-md5sums=('280b065c34ca9ea225772893e84c65cc'
- 'b8517ed459d1f9d73a85b0a79691df29')
+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")
+md5sums=('03cb33312062571118a277bafd01c06d'
+ 'e8ce40c47b108280d7878f858899ab10'
+ 'aac66499bbbd9f21ad3e90af7ba854d2')
-prepare() {
- # noextract will hopefully only be needed for 4.0.4
- cd "$srcdir"
- tar -xaf "kicad-footprints-$pkgver.tar.gz"
-}
-
build() {
- # schematics, 3D files, docs
- cd "$srcdir/kicad-library-$pkgver"
- mkdir -p build/Release
- cd build/Release
- cmake ../.. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
+ cd "$srcdir/kicad-symbols-$pkgver/"
+ cmake ./ -DCMAKE_INSTALL_PREFIX=/usr
+ make
- # footprints
- cd "$srcdir/kicad-footprints-$pkgver"
- # nothing to build
+ cd "$srcdir/kicad-footprints-$pkgver/"
+ cmake ./ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+
+ cd "$srcdir/kicad-packages3D-$pkgver/"
+ cmake ./ -DCMAKE_INSTALL_PREFIX=/usr
+ make
}
package_kicad-library() {
pkgdesc="Kicad component and footprint libraries"
- cd "$srcdir/kicad-library-$pkgver/build/Release"
+ cd "$srcdir/kicad-symbols-$pkgver/"
make DESTDIR="$pkgdir" install
- # not libraries (and provided by kicad)
- #rm -rf "$pkgdir/usr/share/kicad/template"
-
- # footprints
- cd "$srcdir/kicad-footprints-$pkgver"
- # no install either, do it manually
- install -d "$pkgdir/usr/share/kicad/footprints/"
- cp -r * "$pkgdir/usr/share/kicad/footprints/"
-
- # nuke 3D, nuke docs
- rm -rf "$pkgdir/usr/share/kicad/modules/packages3d"
- rm -rf "$pkgdir/usr/share/kicad/modules/footprints_doc"
+ cd "$srcdir/kicad-footprints-$pkgver/"
+ make DESTDIR="$pkgdir" install
}
package_kicad-library-3d() {
pkgdesc="Kicad 3D render model libraries"
-
- install -d "$pkgdir/usr/share/kicad/modules/packages3d"
- cd "$srcdir/kicad-library-$pkgver/modules/packages3d"
- cp -r * "$pkgdir/usr/share/kicad/modules/packages3d/"
+ cd "$srcdir/kicad-packages3D-$pkgver/"
+ make DESTDIR="$pkgdir" install
}
More information about the arch-commits
mailing list