Skip to content

Instantly share code, notes, and snippets.

@rfvgyhn
Created July 23, 2025 21:56
Show Gist options
  • Select an option

  • Save rfvgyhn/88e552cffcd68297121f56cffab28952 to your computer and use it in GitHub Desktop.

Select an option

Save rfvgyhn/88e552cffcd68297121f56cffab28952 to your computer and use it in GitHub Desktop.
add svg icon
From ca0244e237cf28ef9f44f7a2be98b23df49c7dde Mon Sep 17 00:00:00 2001
From: rfvgyhn <[email protected]>
Date: Wed, 23 Jul 2025 15:44:58 -0600
Subject: [PATCH] add icon
---
.SRCINFO | 6 ++++--
PKGBUILD | 10 +++++++---
edmarketconnector.desktop | 2 +-
edmarketconnector.svg | 1 +
4 files changed, 13 insertions(+), 6 deletions(-)
create mode 100644 edmarketconnector.svg
diff --git a/.SRCINFO b/.SRCINFO
index 95cbdc3..1373131 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = edmarketconnector
pkgdesc = Downloads commodity market and other station data from the game Elite: Dangerous for use with all popular online and offline trading tools
pkgver = 5.13.1
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/EDCD/EDMarketConnector
arch = x86_64
license = GPL2
@@ -15,8 +15,10 @@ pkgbase = edmarketconnector
source = https://github.com/EDCD/EDMarketConnector/releases/download/Release%2F5.13.1/EDMarketConnector-release-5.13.1.tar.gz
source = edmarketconnector.sh
source = edmarketconnector.desktop
+ source = edmarketconnector.svg
sha256sums = 085698a6cde2594b7ec6a4888b8405fc65546a66347c6413dfddfd84ad8ac1ce
sha256sums = 9a78ba9acb74e3d8c5a2a051cb058e113437dd786f6e8ed863398f4176a3b8a7
- sha256sums = 5f755b86b1b5a3f879be6555cce0c2628006195b95f10fb48df4b1d1d8af6900
+ sha256sums = 204d4fb3d8d6b907d618d581fa32559d5270f16c65e8818ffcf836a554c5e3d3
+ sha256sums = 91f7fdd2f960bdaec07bfa6611d03b74d7be5f561b5b36363473db3c41b6c518
pkgname = edmarketconnector
diff --git a/PKGBUILD b/PKGBUILD
index e6ba158..7b5b018 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=edmarketconnector
pkgver=5.13.1
-pkgrel=2
+pkgrel=3
pkgdesc='Downloads commodity market and other station data from the game Elite: Dangerous for use with all popular online and offline trading tools'
arch=('x86_64')
url='https://github.com/EDCD/EDMarketConnector'
@@ -13,16 +13,20 @@ conflicts=('edmarketconnector')
depends=('tk' 'python-certifi' 'python-requests' 'python-watchdog' 'python-semantic-version')
source=("https://github.com/EDCD/EDMarketConnector/releases/download/Release%2F${pkgver}/EDMarketConnector-release-${pkgver}.tar.gz"
"edmarketconnector.sh"
- "edmarketconnector.desktop")
+ "edmarketconnector.desktop"
+ "edmarketconnector.svg")
sha256sums=('085698a6cde2594b7ec6a4888b8405fc65546a66347c6413dfddfd84ad8ac1ce'
'9a78ba9acb74e3d8c5a2a051cb058e113437dd786f6e8ed863398f4176a3b8a7'
- '5f755b86b1b5a3f879be6555cce0c2628006195b95f10fb48df4b1d1d8af6900')
+ '204d4fb3d8d6b907d618d581fa32559d5270f16c65e8818ffcf836a554c5e3d3'
+ '91f7fdd2f960bdaec07bfa6611d03b74d7be5f561b5b36363473db3c41b6c518')
package() {
mkdir -p ${pkgdir}/usr/lib/edmarketconnector
mkdir -p ${pkgdir}/usr/bin/
mkdir -p ${pkgdir}/usr/share/applications
+ mkdir -p ${pkgdir}/usr/share/icons/hicolor/scalable/apps
cp ${srcdir}/EDMarketConnector/* ${pkgdir}/usr/lib/edmarketconnector -r
install -m755 edmarketconnector.sh ${pkgdir}/usr/bin/edmarketconnector.sh
install -m644 edmarketconnector.desktop ${pkgdir}/usr/share/applications/edmarketconnector.desktop
+ install -m644 edmarketconnector.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/edmarketconnector.svg
}
diff --git a/edmarketconnector.desktop b/edmarketconnector.desktop
index 8cee113..a646fb3 100644
--- a/edmarketconnector.desktop
+++ b/edmarketconnector.desktop
@@ -4,6 +4,6 @@ Version=1.0
Name=EDMarketConnector
Comment=Downloads commodity market and other station data from the game Elite: Dangerous for use with all popular online and offline trading tools.
Exec=edmarketconnector.sh
-Icon=application-rss+xml-symbolic
+Icon=edmarketconnector
Terminal=false
Categories=Game;
diff --git a/edmarketconnector.svg b/edmarketconnector.svg
new file mode 100644
index 0000000..61e7307
--- /dev/null
+++ b/edmarketconnector.svg
@@ -0,0 +1 @@
+<svg width="566.443" height="566.443" xmlns="http://www.w3.org/2000/svg"><defs><filter style="color-interpolation-filters:sRGB" id="a" x="-.081" y="-.102" width="1.163" height="1.205"><feFlood result="flood" flood-opacity=".761" flood-color="#000"/><feGaussianBlur result="blur" in="SourceGraphic" stdDeviation="16.5"/><feOffset result="offset" in="blur"/><feComposite result="comp1" operator="in" in="flood" in2="offset"/><feComposite result="comp2" in="SourceGraphic" in2="comp1"/></filter></defs><g style="display:inline;stroke:none;stroke-width:9.3;stroke-linecap:round;stroke-dasharray:none;filter:url(#a)" transform="translate(27.347 27.36)"><path style="display:inline;fill:#964308;stroke:none;stroke-width:9.3;stroke-linecap:round;stroke-dasharray:none" d="M372 417.035V384H156V264h216v-67.498l63.748 63.748 63.748 63.748-61.998 62.062c-34.099 34.134-62.785 62.5-63.748 63.036-1.651.92-1.75-.894-1.75-32.06zm60.249-137.284L388 235.503V280H172v88h216v44.497l44.249-44.248L476.497 324z"/><path style="display:inline;fill:#fd891b;fill-opacity:1;stroke:none;stroke-width:9.3;stroke-linecap:round;stroke-dasharray:none" d="M139.749 94.688v33.035h216v120h-216V315.221L76 251.473l-63.748-63.748 61.998-62.062c34.099-34.134 62.785-62.5 63.748-63.036 1.65-.919 1.75.895 1.75 32.061zM79.5 231.972l44.249 44.249v-44.498h216v-88h-216V99.226L79.5 143.475l-44.248 44.248z"/></g></svg>
\ No newline at end of file
--
2.50.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment