git » kicad-library.git » commit f6a80fa

kicad-library 8.0.8

author Urja (ARMLFS builder)
2025-02-10 10:15:12 UTC
committer Urja (ARMLFS builder)
2025-02-10 10:15:12 UTC
parent b8d4ff85cd0fb021a34c2c39c5495510bbc2bdec

kicad-library 8.0.8

.SRCINFO +16 -9
PKGBUILD +6 -6
PKGBUILD.old +91 -0

diff --git a/.SRCINFO b/.SRCINFO
index 388e320..f322529 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,24 +1,31 @@
 pkgbase = kicad-library
 	pkgdesc = Assorted libraries for KiCad
-	pkgver = 8.0.2
+	pkgver = 8.0.8
 	pkgrel = 1
 	url = http://kicad.org/
 	arch = any
 	license = GPL
 	makedepends = git
 	makedepends = cmake
+	makedepends = squashfs-tools
 	options = !strip
-	source = git+https://gitlab.com/kicad/libraries/kicad-packages3D.git#tag=8.0.2
-	source = git+https://gitlab.com/kicad/libraries/kicad-symbols.git#tag=8.0.2
-	source = git+https://gitlab.com/kicad/libraries/kicad-templates.git#tag=8.0.2
-	source = git+https://gitlab.com/kicad/libraries/kicad-footprints.git#tag=8.0.2
-	sha512sums = 68a954524fcb0efe9ec6beb6064201758db91406d13b1e27b23e4c75a54155cceab8d0a3394aa859922ca26b0d12712a3923cf9dadde08f7b4c43177597506f1
-	sha512sums = 4a8966c5e338eeb3af39db61e7d294b31a19f07d21f8a4f8abb3f99830d83fc85d4129db45d20045ebcc92875c18e9544898541f708e1415d40a2a6fc6de391a
-	sha512sums = d4f7bd552033e365e2c0c77b4e74a947e34f63728d4dfd4c4d70c6766ed78235e682e750538851171c69b8ac2e0db72afc3b4d307b8b647cee78a816cacef005
-	sha512sums = 81c9e5e4427ce7daec5cc451705e17c6f7ba852750cf40faf1d277544865716394e357d4586d513be657d9ff22feeb215de79ed1ed757c7f2e999f9c53805d00
+	source = git+https://gitlab.com/kicad/libraries/kicad-packages3D.git#tag=8.0.8
+	source = git+https://gitlab.com/kicad/libraries/kicad-symbols.git#tag=8.0.8
+	source = git+https://gitlab.com/kicad/libraries/kicad-templates.git#tag=8.0.8
+	source = git+https://gitlab.com/kicad/libraries/kicad-footprints.git#tag=8.0.8
+	source = 10-kicad-library.preset
+	source = 10-kicad-library-3d.preset
+	sha256sums = d10c2cf350820295d728bb7aa254f08c66e37d1e9640bce07988817a09a8cb82
+	sha256sums = 299a6deb23782809aeb79cc263f1454b2e04adb6c3fc0f2a8ab7892e8670131d
+	sha256sums = 083617a1071ea3dc539e2e76cde0002d337eb6f474f169b3b20a5ef136001731
+	sha256sums = 72f2c6590a551edd416489b84c68adba05b464c980ea28cb0508389bca05594b
+	sha256sums = 22502d199590f0fee0d17b309a374ff1d085b312393b318f43cea88ca245c2db
+	sha256sums = f45bab86a2baeb6798df19c0c3a7821562d5c9120d3c0582caf39f0a87912815
 
 pkgname = kicad-library
 	pkgdesc = KiCad symbol, footprint and template libraries
+	install = kicad-library.install
 
 pkgname = kicad-library-3d
 	pkgdesc = KiCad 3D model libraries
+	install = kicad-library-3d.install
diff --git a/PKGBUILD b/PKGBUILD
index 2a64d87..d9559c4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,8 +5,8 @@
 
 pkgbase=kicad-library
 pkgname=($pkgbase{,-3d})
-pkgver=8.0.3
-pkgrel=5
+pkgver=8.0.8
+pkgrel=1
 pkgdesc='Assorted libraries for KiCad'
 arch=('any')
 url='http://kicad.org/'
@@ -83,9 +83,9 @@ package_kicad-library-3d() {
 }
 
 # vim:set ts=2 sw=2 et:
-sha256sums=('ab1ed7dc15d00e85cfdea099b40b99901fac126b78c562468d5f1fdb7146cecc'
-            'eb9bd682bf3245a151d1d5f9f6aa6392600c3813e2e21a7d9cb3c34c04388655'
-            'b24e600d8f230f83933f71e4c5b53870c3830067b1f5b066baca218b152ff5d1'
-            '355465458b5123e1587cec0ceeeca2d3cf9cf9b1d2b0235a0e8cdcd5c230cec8'
+sha256sums=('d10c2cf350820295d728bb7aa254f08c66e37d1e9640bce07988817a09a8cb82'
+            '299a6deb23782809aeb79cc263f1454b2e04adb6c3fc0f2a8ab7892e8670131d'
+            '083617a1071ea3dc539e2e76cde0002d337eb6f474f169b3b20a5ef136001731'
+            '72f2c6590a551edd416489b84c68adba05b464c980ea28cb0508389bca05594b'
             '22502d199590f0fee0d17b309a374ff1d085b312393b318f43cea88ca245c2db'
             'f45bab86a2baeb6798df19c0c3a7821562d5c9120d3c0582caf39f0a87912815')
diff --git a/PKGBUILD.old b/PKGBUILD.old
new file mode 100644
index 0000000..7871be8
--- /dev/null
+++ b/PKGBUILD.old
@@ -0,0 +1,91 @@
+# Maintainer: Filipe LaĆ­ns <lains@archlinux.org>
+# Maintainer: George Rawlinson <grawlinson@archlinux.org>
+# Contributor: Kyle Keen <keenerd@gmail.com>
+# Contributor: Rachel Mant <aur@dragonmux.network>
+
+pkgbase=kicad-library
+pkgname=($pkgbase{,-3d})
+pkgver=8.0.7
+pkgrel=1
+pkgdesc='Assorted libraries for KiCad'
+arch=('any')
+url='http://kicad.org/'
+license=('GPL')
+makedepends=('git' 'cmake' 'squashfs-tools')
+options=('!strip')
+source=(
+  "git+https://gitlab.com/kicad/libraries/kicad-packages3D.git#tag=$pkgver"
+  "git+https://gitlab.com/kicad/libraries/kicad-symbols.git#tag=$pkgver"
+  "git+https://gitlab.com/kicad/libraries/kicad-templates.git#tag=$pkgver"
+  "git+https://gitlab.com/kicad/libraries/kicad-footprints.git#tag=$pkgver"
+)
+# This is split to allow easier patching to newer kicad-library PKGBUILDs from upstream
+source+=(
+  "10-kicad-library.preset"
+  "10-kicad-library-3d.preset"
+)
+
+build() {
+  for package in symbols footprints packages3D templates; do
+     cmake \
+       -B "build-$package" \
+       -S "kicad-$package" \
+       -DCMAKE_INSTALL_PREFIX=/usr
+
+     cmake --build "build-$package"
+   done
+}
+
+_squash_dir_systemd() {
+  for package in $@; do
+    mksquashfs "$pkgdir"/usr/share/kicad/$package "$pkgdir"/usr/share/kicad/$package.sqfs -b 1m -comp zstd -Xcompression-level 19
+    rm -r "$pkgdir"/usr/share/kicad/$package
+    mkdir -p "$pkgdir"/usr/share/kicad/$package
+    mkdir -p "$pkgdir"/usr/lib/systemd/system
+    cat > "$pkgdir"/usr/lib/systemd/system/usr-share-kicad-$package.mount << EOF
+[Unit]
+Description=Kicad $package
+
+[Mount]
+What=/usr/share/kicad/$package.sqfs
+Where=/usr/share/kicad/$package
+Type=squashfs
+Options=loop,ro
+
+[Install]
+WantedBy=multi-user.target
+EOF
+  done
+}
+
+package_kicad-library() {
+  pkgdesc="KiCad symbol, footprint and template libraries"
+  install=kicad-library.install
+
+  for package in symbols footprints templates; do
+    DESTDIR="$pkgdir" cmake --install "build-$package"
+  done
+
+  _squash_dir_systemd symbols footprints
+  mkdir -p "$pkgdir"/usr/lib/systemd/system-preset
+  cp 10-kicad-library.preset "$pkgdir"/usr/lib/systemd/system-preset/
+}
+
+package_kicad-library-3d() {
+  pkgdesc="KiCad 3D model libraries"
+  install=kicad-library-3d.install
+
+  DESTDIR="$pkgdir" cmake --install build-packages3D
+
+  _squash_dir_systemd 3dmodels
+  mkdir -p "$pkgdir"/usr/lib/systemd/system-preset
+  cp 10-kicad-library-3d.preset "$pkgdir"/usr/lib/systemd/system-preset/
+}
+
+# vim:set ts=2 sw=2 et:
+sha256sums=('37da63b69f19072838940f4c6b713e22afd2cf3af910ba283fb2b59adce456a8'
+            'a2eabff58a8c7cc4feb3bbf8177827205633e1524ddc8266c25dd00515be91db'
+            'b24e600d8f230f83933f71e4c5b53870c3830067b1f5b066baca218b152ff5d1'
+            '01c7f47b7513b418ac7df5b129cf28ce9f8634e8946de913c61ec4d92e77a555'
+            '22502d199590f0fee0d17b309a374ff1d085b312393b318f43cea88ca245c2db'
+            'f45bab86a2baeb6798df19c0c3a7821562d5c9120d3c0582caf39f0a87912815')