ready to pkg
This commit is contained in:
parent
a02b4b58e7
commit
35acb93ca9
9
PKGBUILD
9
PKGBUILD
|
@ -2,7 +2,7 @@
|
||||||
pkgname=systrayupdater
|
pkgname=systrayupdater
|
||||||
pkgver=r36.ba00462
|
pkgver=r36.ba00462
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="PyQt5 system tray applet to notify of available updates"
|
pkgdesc="PyQt5 system tray applet notifier of available updates"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/ericlay/$pkgname"
|
url="https://github.com/ericlay/$pkgname"
|
||||||
license=('GPL3')
|
license=('GPL3')
|
||||||
|
@ -23,7 +23,8 @@ pkgver(){
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/$pkgname"
|
cd "$srcdir/$pkgname"
|
||||||
install -Dm755 systrayUpdater -t "$pkgdir/usr/bin"
|
install -Dm755 systrayupdater -t "$pkgdir/usr/bin"
|
||||||
install -Dm666 SysTrayUpdater.desktop -t "$pkgdir/usr/share/applications"
|
install -Dm755 config.yml -t "$pkgdir/etc/$pkgname"
|
||||||
install -Dm755 ./*.png systrayupdater.yml -t "$pkgdir/$HOME/.config/$pkgname"
|
install -Dm666 systrayupdater.desktop -t "$pkgdir/usr/share/applications"
|
||||||
|
install -Dm644 ./*.svg -t "$pkgdir/usr/share/icons/hicolor/symbolic/apps"
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0,0,256,256" width="24px" height="24px"><g fill="#339af0" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><g transform="scale(10.66667,10.66667)"><path d="M14.3,19.414c0.216,-0.569 0.342,-1.218 0.342,-1.913c0,-2.129 -1.139,-3.86 -2.539,-3.86c-1.412,0 -2.55,1.731 -2.55,3.86c0,0.683 0.114,1.332 0.33,1.89c-4.657,0.49 -7.936,2.437 -9.268,3.313c2.243,-3.234 4.589,-7.025 6.831,-11.386c0.558,-1.082 1.082,-2.152 1.571,-3.199c0.193,0.125 0.387,0.262 0.603,0.399c1.002,0.626 1.936,0.968 2.619,1.15c-0.501,-0.376 -1.047,-0.831 -1.605,-1.389c-0.421,-0.421 -0.797,-0.843 -1.116,-1.253c0.945,-2.072 1.765,-4.065 2.482,-5.955c1.195,3.165 2.687,6.615 4.554,10.247c1.207,2.334 2.437,4.509 3.666,6.513c-0.353,-0.193 -0.74,-0.376 -1.15,-0.535c-0.706,-0.273 -1.366,-0.444 -1.936,-0.546c0.774,0.387 1.674,0.9 2.619,1.583c0.615,0.456 1.161,0.911 1.628,1.355c0.011,0.011 0.011,0.011 0.023,0.023c0.649,1.059 1.321,2.038 1.981,2.994c-1.309,-0.866 -4.531,-2.779 -9.085,-3.291z"></path></g></g></svg>
|
After Width: | Height: | Size: 1.3 KiB |
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0,0,256,256" width="80px" height="80px"><g fill="#339af0" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><g transform="scale(10.66667,10.66667)"><path d="M14.3,19.414c0.216,-0.569 0.342,-1.218 0.342,-1.913c0,-2.129 -1.139,-3.86 -2.539,-3.86c-1.412,0 -2.55,1.731 -2.55,3.86c0,0.683 0.114,1.332 0.33,1.89c-4.657,0.49 -7.936,2.437 -9.268,3.313c2.243,-3.234 4.589,-7.025 6.831,-11.386c0.558,-1.082 1.082,-2.152 1.571,-3.199c0.193,0.125 0.387,0.262 0.603,0.399c1.002,0.626 1.936,0.968 2.619,1.15c-0.501,-0.376 -1.047,-0.831 -1.605,-1.389c-0.421,-0.421 -0.797,-0.843 -1.116,-1.253c0.945,-2.072 1.765,-4.065 2.482,-5.955c1.195,3.165 2.687,6.615 4.554,10.247c1.207,2.334 2.437,4.509 3.666,6.513c-0.353,-0.193 -0.74,-0.376 -1.15,-0.535c-0.706,-0.273 -1.366,-0.444 -1.936,-0.546c0.774,0.387 1.674,0.9 2.619,1.583c0.615,0.456 1.161,0.911 1.628,1.355c0.011,0.011 0.011,0.011 0.023,0.023c0.649,1.059 1.321,2.038 1.981,2.994c-1.309,-0.866 -4.531,-2.779 -9.085,-3.291z"></path></g></g></svg>
|
After Width: | Height: | Size: 1.3 KiB |
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0,0,256,256" width="24px" height="24px"><g fill="#ffffff" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><g transform="scale(10.66667,10.66667)"><path d="M14.3,19.414c0.216,-0.569 0.342,-1.218 0.342,-1.913c0,-2.129 -1.139,-3.86 -2.539,-3.86c-1.412,0 -2.55,1.731 -2.55,3.86c0,0.683 0.114,1.332 0.33,1.89c-4.657,0.49 -7.936,2.437 -9.268,3.313c2.243,-3.234 4.589,-7.025 6.831,-11.386c0.558,-1.082 1.082,-2.152 1.571,-3.199c0.193,0.125 0.387,0.262 0.603,0.399c1.002,0.626 1.936,0.968 2.619,1.15c-0.501,-0.376 -1.047,-0.831 -1.605,-1.389c-0.421,-0.421 -0.797,-0.843 -1.116,-1.253c0.945,-2.072 1.765,-4.065 2.482,-5.955c1.195,3.165 2.687,6.615 4.554,10.247c1.207,2.334 2.437,4.509 3.666,6.513c-0.353,-0.193 -0.74,-0.376 -1.15,-0.535c-0.706,-0.273 -1.366,-0.444 -1.936,-0.546c0.774,0.387 1.674,0.9 2.619,1.583c0.615,0.456 1.161,0.911 1.628,1.355c0.011,0.011 0.011,0.011 0.023,0.023c0.649,1.059 1.321,2.038 1.981,2.994c-1.309,-0.866 -4.531,-2.779 -9.085,-3.291z"></path></g></g></svg>
|
After Width: | Height: | Size: 1.3 KiB |
BIN
blue-logo.png
BIN
blue-logo.png
Binary file not shown.
Before Width: | Height: | Size: 13 KiB |
|
@ -9,4 +9,4 @@ option: -e
|
||||||
timer: 10
|
timer: 10
|
||||||
# custom icons should follow Arch linux standards
|
# custom icons should follow Arch linux standards
|
||||||
# custom icons should be stored in ~/.config/systrayUpdater
|
# custom icons should be stored in ~/.config/systrayUpdater
|
||||||
icon: white-logo.png
|
icon: arch-white-symbolic-24.svg
|
|
@ -17,12 +17,17 @@ outputList = ""
|
||||||
|
|
||||||
# Use config.yml file to allow for compatibility with
|
# Use config.yml file to allow for compatibility with
|
||||||
# most terminal emulators possible & custom icon / timer duration
|
# most terminal emulators possible & custom icon / timer duration
|
||||||
with open(path.expanduser("~/.config/systrayupdater/systrayupdater.yml")) as f:
|
if path.exists(path.expanduser("~/.config/systrayupdater/config.yml")):
|
||||||
|
config = path.expanduser("~/.config/systrayupdater/config.yml")
|
||||||
|
else:
|
||||||
|
config = '/etc/systrayupdater/config.yml'
|
||||||
|
|
||||||
|
with open(config) as f:
|
||||||
conf = yaml.load(f, yaml.FullLoader)
|
conf = yaml.load(f, yaml.FullLoader)
|
||||||
term = str(conf['terminal'])
|
term = str(conf['terminal'])
|
||||||
opt = str(conf['option'])
|
opt = str(conf['option'])
|
||||||
wait = int(conf['timer']) * 60000
|
wait = int(conf['timer']) * 60000
|
||||||
icn = path.join(path.expanduser("~/.config/systrayupdater/"), str(conf['icon']))
|
icn = path.join('/usr/share/icons/hicolor/symbolic/apps/', str(conf['icon']))
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
# Run checkupdates command
|
# Run checkupdates command
|
|
@ -3,7 +3,7 @@ Version=1.0
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=SysTrayUpdater
|
Name=SysTrayUpdater
|
||||||
Exec=/usr/bin/systrayUpdater
|
Exec=/usr/bin/systrayUpdater
|
||||||
Icon=$HOME/.config/systrayUpdater/blue-logo.png
|
Icon=/usr/share/icons/hicolor/symbolic/arch-blue-symbolic-80.svg
|
||||||
Terminal=false
|
Terminal=false
|
||||||
StartupNotify=false
|
StartupNotify=false
|
||||||
Categories=Utility;
|
Categories=Utility;
|
BIN
white-logo.png
BIN
white-logo.png
Binary file not shown.
Before Width: | Height: | Size: 11 KiB |
Loading…
Reference in New Issue