Balló György pushed to branch main at Arch Linux / Packaging / Packages / gnome-shell-extension-weather-oclock
Commits: 3a77312d by Balló György at 2024-05-12T18:47:12+02:00 Switch to git source - - - - - 3 changed files: - .SRCINFO - PKGBUILD - − gnome-shell-extension-weather-oclock-icon-size.patch Changes: ===================================== .SRCINFO ===================================== @@ -5,11 +5,10 @@ pkgbase = gnome-shell-extension-weather-oclock url = https://github.com/CleoMenezesJr/weather-oclock arch = any license = GPL-3.0-or-later + makedepends = git depends = gnome-shell optdepends = gnome-weather: configure location - source = https://github.com/CleoMenezesJr/weather-oclock/archive/46.2/weather-oclock-46.2.tar.gz - source = gnome-shell-extension-weather-oclock-icon-size.patch - sha256sums = 7542b9888aafa81ebb942b0962ee2690f007eae82e86aee02fd8675b08e23bd9 - sha256sums = 1b7c39af7ad851f42430951e3fc896dc5aec3048f1f4bf45544c6b0cdbfd82a4 + source = git+https://github.com/CleoMenezesJr/weather-oclock.git#tag=46.2 + b2sums = dce579ca0440947bcc0a086cf99c9749ab21e37088fedbe60ec860c0348c014756b5bc4a588d13c10c33d3454b1bd94b75b85c2b106fb60aae69f8f39d930774 pkgname = gnome-shell-extension-weather-oclock ===================================== PKGBUILD ===================================== @@ -10,19 +10,18 @@ arch=('any') url='https://github.com/CleoMenezesJr/weather-oclock' license=('GPL-3.0-or-later') depends=('gnome-shell') +makedepends=('git') optdepends=('gnome-weather: configure location') -source=("https://github.com/CleoMenezesJr/$_pkgname/archive/$pkgver/$_pkgname-$pkgver.tar.gz" - 'gnome-shell-extension-weather-oclock-icon-size.patch') -sha256sums=('7542b9888aafa81ebb942b0962ee2690f007eae82e86aee02fd8675b08e23bd9' - '1b7c39af7ad851f42430951e3fc896dc5aec3048f1f4bf45544c6b0cdbfd82a4') +source=("git+https://github.com/CleoMenezesJr/weather-oclock.git#tag=$pkgver") +b2sums=('dce579ca0440947bcc0a086cf99c9749ab21e37088fedbe60ec860c0348c014756b5bc4a588d13c10c33d3454b1bd94b75b85c2b106fb60aae69f8f39d930774') prepare() { - cd $_pkgname-$pkgver + cd $_pkgname - # https://github.com/CleoMenezesJr/weather-oclock/commit/64a3f9911a0e87ff5c2ef16a79b30820a40d0654 - patch -Np1 -i ../gnome-shell-extension-weather-oclock-icon-size.patch + # remove hardcoded icon size + git cherry-pick -n 64a3f9911a0e87ff5c2ef16a79b30820a40d0654 } package() { - install -Dm644 -t "$pkgdir/usr/share/gnome-shell/extensions/$_uuid" $_pkgname-$pkgver/$_uuid/* + install -Dm644 -t "$pkgdir/usr/share/gnome-shell/extensions/$_uuid" $_pkgname/$_uuid/* } ===================================== gnome-shell-extension-weather-oclock-icon-size.patch deleted ===================================== @@ -1,38 +0,0 @@ -From 64a3f9911a0e87ff5c2ef16a79b30820a40d0654 Mon Sep 17 00:00:00 2001 -From: "Cleo Menezes Jr." <cleomeneze...@gmail.com> -Date: Thu, 4 Apr 2024 21:53:16 -0300 -Subject: [PATCH] feat: remove hardcoded icon size - -brings back #26 but with fixes on icon spacing ---- - weatherocl...@cleomenezesjr.github.io/extension.js | 2 +- - weatherocl...@cleomenezesjr.github.io/stylesheet.css | 5 +++++ - 2 files changed, 6 insertions(+), 1 deletion(-) - -diff --git a/weatherocl...@cleomenezesjr.github.io/extension.js b/weatherocl...@cleomenezesjr.github.io/extension.js -index b50d78b..4f1a088 100644 ---- a/weatherocl...@cleomenezesjr.github.io/extension.js -+++ b/weatherocl...@cleomenezesjr.github.io/extension.js -@@ -87,8 +87,8 @@ const PanelWeather = GObject.registerClass( - this._signals = []; - - this._icon = new St.Icon({ -- icon_size: 16, - y_align: Clutter.ActorAlign.CENTER, -+ style_class: "system-status-icon custom-weather-icon-spacing", - }); - - this.add_child(this._icon); -diff --git a/weatherocl...@cleomenezesjr.github.io/stylesheet.css b/weatherocl...@cleomenezesjr.github.io/stylesheet.css -index 7d4df3f..2b84409 100644 ---- a/weatherocl...@cleomenezesjr.github.io/stylesheet.css -+++ b/weatherocl...@cleomenezesjr.github.io/stylesheet.css -@@ -2,3 +2,8 @@ - margin-right: 0.7em; - margin-left: 0.3em; - } -+ -+.custom-weather-icon-spacing { -+ padding: 0; -+ margin: 0; -+} View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/gnome-shell-extension-weather-oclock/-/commit/3a77312dab6065be284bdc85ed5609ca7e744860 -- This project does not include diff previews in email notifications. View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/gnome-shell-extension-weather-oclock/-/commit/3a77312dab6065be284bdc85ed5609ca7e744860 You're receiving this email because of your account on gitlab.archlinux.org.