diff options
author | Grzegorz Alibożek | 2022-10-13 09:26:33 +0200 |
---|---|---|
committer | Grzegorz Alibożek | 2022-10-13 09:26:33 +0200 |
commit | 8a6977c5d4081feaac9efc4b7c7c948e5eec59b8 (patch) | |
tree | 505891079b0e3c82cfe31ebbb82281741f67c2a0 | |
parent | 51de84519da660dfd20f56089380367d43e02fff (diff) | |
download | aur-8a6977c5d4081feaac9efc4b7c7c948e5eec59b8.tar.gz |
fix popup height and width on plasma 5.26
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | 109.patch | 13 | ||||
-rw-r--r-- | PKGBUILD | 12 |
3 files changed, 25 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = plasma5-applets-weather-widget-2 pkgdesc = An updated version of the plasma-applet-weather-widget by Kotelnik pkgver = 2.3.2.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/blackadderkate/weather-widget-2 arch = x86_64 license = GPL @@ -10,6 +10,8 @@ pkgbase = plasma5-applets-weather-widget-2 depends = qt5-graphicaleffects depends = qt5-xmlpatterns source = https://github.com/blackadderkate/weather-widget-2/archive/refs/tags/v2.3.2.2.tar.gz + source = 109.patch sha256sums = 135c50da4d9d225e0f5b973b10f74c7e8ed9efe44ca5e81c0d57656db4ce2df0 + sha256sums = 815944ae68153721c0406733c132837cb5ebff9318db17d3846a085c20e45e2f pkgname = plasma5-applets-weather-widget-2 diff --git a/109.patch b/109.patch new file mode 100644 index 000000000000..efeb68c1405b --- /dev/null +++ b/109.patch @@ -0,0 +1,13 @@ +--- a/package/contents/ui/FullRepresentation.qml 2022-09-20 21:01:06.000000000 +0200 ++++ b/package/contents/ui/FullRepresentation.qml 2022-10-13 09:15:22.395968225 +0200 +@@ -36,8 +36,8 @@ + property int headingHeight: defaultFontPixelSize * 2 + property double hourLegendBottomMargin: defaultFontPixelSize * 0.2 + +- width: imageWidth +- height: headingHeight + imageHeight + footerHeight + nextDaysHeight + 14 ++ implicitWidth: imageWidth ++ implicitHeight: headingHeight + imageHeight + footerHeight + nextDaysHeight + 14 + + + @@ -2,15 +2,17 @@ _gitname="weather-widget-2" pkgname=plasma5-applets-weather-widget-2 pkgver=2.3.2.2 -pkgrel=1 +pkgrel=2 pkgdesc="An updated version of the plasma-applet-weather-widget by Kotelnik" arch=('x86_64') url="https://github.com/blackadderkate/$_gitname" license=('GPL') depends=('plasma-workspace' 'qt5-graphicaleffects' 'qt5-xmlpatterns') makedepends=('extra-cmake-modules') -source=(${url}/archive/refs/tags/v${pkgver}.tar.gz) -sha256sums=('135c50da4d9d225e0f5b973b10f74c7e8ed9efe44ca5e81c0d57656db4ce2df0') +source=(${url}/archive/refs/tags/v${pkgver}.tar.gz + 109.patch) +sha256sums=('135c50da4d9d225e0f5b973b10f74c7e8ed9efe44ca5e81c0d57656db4ce2df0' + '815944ae68153721c0406733c132837cb5ebff9318db17d3846a085c20e45e2f') build() { cmake -B ./build -S ./${_gitname}-${pkgver} \ @@ -20,6 +22,10 @@ build() { -DKDE_INSTALL_USE_QT_SYS_PATHS=ON } +prepare() { + patch -Np1 -d ./${_gitname}-${pkgver} -i ../109.patch +} + package() { make -C ./build DESTDIR="$pkgdir" install } |