Last active
May 20, 2019 18:22
-
-
Save ellisgeek/d0ec9b5bc0693a44930c7a2748c023d3 to your computer and use it in GitHub Desktop.
wpgtk.desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Fernando Vasquez <fmorataya.04@gmail.com> | |
_gitname=wpgtk | |
pkgname="${_gitname}-git" | |
_gitbranch=master | |
_gitauthor=deviantfero # deviantfero | |
pkgver=r751.9145e4f | |
pkgrel=1 | |
pkgdesc="A gui wallpaper chooser that changes your Openbox theme, GTK theme and Tint2 theme" | |
url="https://github.com/${_gitauthor}/${_gitname}" | |
license=('GPLv2') | |
source=("git://github.com/${_gitauthor}/${_gitname}#branch=${_gitbranch}" | |
"wpgtk.png::https://github.githubassets.com/images/icons/emoji/unicode/1f3b4.png" | |
"wpgtk.desktop") | |
noextract=("wpgtk.png") | |
sha512sums=('SKIP' 'SKIP' 'SKIP') | |
arch=('any') | |
depends=('python' | |
'python-pillow' | |
'python-gobject' | |
'gtk3' | |
'libxslt' | |
'python-pywal') | |
optdepends=('feh: set wallpaper' | |
'nitrogen: set wallpaper' | |
'xsettingsd-git: live reload GTK+ theme') | |
conflicts=("${_gitname}") | |
provides=("${_gitname}=$pkgver") | |
pkgver() { | |
cd "${srcdir}/${_gitname}" | |
( | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
) | |
} | |
package() { | |
cd "${srcdir}/${_gitname}" | |
python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 | |
install -Dm644 "$srcdir/$_gitname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
install -Dm644 "$srcdir/$_gitname/$_gitname/misc/wpg.conf" \ | |
"usr/etc/$_gitname/wpg.conf" | |
install -Dm644 "$srcdir/$_gitname/completions/bash/wpg" \ | |
"usr/share/bash-completion/wpg" | |
install -Dm644 "$srcdir/$_gitname/completions/zsh/_wpg" \ | |
"usr/share/zsh/site-functions/_wpg" | |
install -Dm644 "$srcdir/$_gitname/$_gitname/misc/wpg-install.sh" \ | |
"usr/bin/wpg-install.sh" | |
install -Dm644 "$srcdir/wpgtk.png" \ | |
"$pkgdir/usr/share/pixmaps/wpgtk.png" | |
install -Dm644 "$srcdir/wpgtk.desktop" \ | |
"$pkgdir/usr/share/applications/wpgtk.desktop" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Type=Application | |
Version=1.0 | |
Name=wpgtk | |
Comment=A colorscheme, wallpaper and template manager for *nix | |
Exec=/usr/bin/wpg | |
Icon=wpgtk | |
Terminal=false | |
Categories=Utility;DesktopSettings; |
sorry missed your comment, Not sure what the policy is with python packages on including a desktop file but the one issue is that the "icon" will need to be pulled as well and the .desktop file will need to be moved to /usr/share/applications/wpgtk.desktop but that can be done in the package.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is alright, I'll make some adjustments, shouldn't it be better if the .desktop was added as part of the python package? what do you think?