[arch-commits] Commit in wings3d/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Sun May 2 19:52:46 UTC 2021


    Date: Sunday, May 2, 2021 @ 19:52:46
  Author: bgyorgy
Revision: 926187

upgpkg: wings3d 2.2.5-4: Add larger icon, add AppStream metadata file

Modified:
  wings3d/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-02 19:31:41 UTC (rev 926186)
+++ PKGBUILD	2021-05-02 19:52:46 UTC (rev 926187)
@@ -3,7 +3,7 @@
 
 pkgname=wings3d
 pkgver=2.2.5
-pkgrel=3
+pkgrel=4
 pkgdesc='3D modeler using the winged edge data structure'
 arch=(x86_64)
 url='http://www.wings3d.com/' # https is not available
@@ -18,11 +18,12 @@
 
 prepare() {
   gendesk -f -n \
-    --name Wings3D \
+    --name 'Wings 3D' \
     --pkgname $pkgname \
     --pkgdesc "$pkgdesc" \
     --genericname '3D Modeler' \
     --categories 'Graphics;3DGraphics'
+  sed -i "/desktop-id/ s/com.wings3d.WINGS.desktop/$pkgname.desktop/" ${pkgname%3d}-$pkgver/unix/wings.appdata.xml
 }
 
 build() {
@@ -33,9 +34,11 @@
 package() {
   install -Dm755 wings.sh "$pkgdir/usr/bin/$pkgname"
   install -Dm644 -t "$pkgdir/usr/share/applications" $pkgname.desktop
-  cd ${pkgname%3d}-$pkgver/icons
-  install -Dm644 wings_icon_48x48.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
-  cd ../build
+  cd ${pkgname%3d}-$pkgver
+  install -Dm644 icons/wings_icon_48x48.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/$pkgname.png"
+  install -Dm644 icons/wings_icon_256x256.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/$pkgname.png"
+  install -Dm644 unix/wings.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml"
+  cd build
   install -d "$pkgdir/usr/lib/$pkgname"
   cp -r wings-$pkgver-linux/lib/wings-$pkgver/* "$pkgdir/usr/lib/$pkgname"
 }



More information about the arch-commits mailing list