Advertisement
Guest User

Untitled

a guest
Jun 14th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. # Maintainer: Charles Bos <charlesbos1 AT gmail>
  2. # Contributor: Pantelis Panayiotou <p.panayiotou@gmail.com>
  3. # Contributor: Ronald van Haren <ronald.archlinux.org>
  4. # Contributor: nesl247 <nesl247@gmail.com>
  5. # Contributor: JJDaNiMoTh <jjdanimoth@gmail.com>
  6.  
  7. pkgname=fusion-icon
  8. epoch=1
  9. pkgver=0.2.3
  10. pkgrel=2
  11. pkgdesc="Simple tray icon for Compiz 0.8"
  12. arch=('any')
  13. url="http://www.compiz.org/"
  14. license=('GPL')
  15. conflicts=('fusion-icon0.9')
  16. depends=('compizconfig-python' 'hicolor-icon-theme' 'xorg-xvinfo' 'mesa-demos')
  17. install="$pkgname.install"
  18. source=("https://github.com/compiz-reloaded/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz")
  19.  
  20. # presume that if compizconfig-python deps are met, it's against python2
  21. _python="python"
  22. _sitearch_check="from distutils import sysconfig; print(sysconfig.get_python_lib(plat_specific=1))"
  23.  
  24. # do we have a python2 compizconfig-python?
  25. if [[ -f "$(python2 -c "${_sitearch_check}")/compizconfig.so" ]]; then
  26. _python=python2
  27. fi
  28.  
  29. # Note to anyone who builds this: Make sure you install the appropriate
  30. # dependencies for the user interfaces you want to use! Otherwise, it'll appear
  31. # like it's not working!
  32. # Also - change these to python2 if you're using Compiz 0.9.x
  33. optdepends=(
  34. "${_python2}-pyqt5: For the Qt Interface"
  35. "${_python2}-gobject: For the GTK+ Interface"
  36. 'libappindicator-gtk3: For the GTK+ Interface'
  37. )
  38.  
  39. build() {
  40. cd "${srcdir}/${pkgname}-${pkgver}"
  41. "${_python}" setup.py build
  42. }
  43.  
  44. package() {
  45. cd "${srcdir}/${pkgname}-${pkgver}"
  46. "${_python}" setup.py install --root="${pkgdir}" --optimize=1
  47. }
  48.  
  49. sha256sums=('6b609b4b6c8b81175ddafae4aa7b3d905938443dbb1db10523e428b6aba0d521')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement