Skip to content

Instantly share code, notes, and snippets.

@ellisgeek
Last active May 20, 2019 18:22
Show Gist options
  • Select an option

  • Save ellisgeek/d0ec9b5bc0693a44930c7a2748c023d3 to your computer and use it in GitHub Desktop.

Select an option

Save ellisgeek/d0ec9b5bc0693a44930c7a2748c023d3 to your computer and use it in GitHub Desktop.
wpgtk.desktop
# 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"
}
[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;
@deviantfero
Copy link
Copy Markdown

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?

@ellisgeek
Copy link
Copy Markdown
Author

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