summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5eaad33ac0dbca00685455534d8fa7780c36a5c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Maintainer: Sapphira Armageddos <shadowkyogre.public@gmail.com>
# Contributor: Charles Bos <charlesbos1 AT gmail>
# Contributor: Pantelis Panayiotou <p.panayiotou@gmail.com>
# Contributor: Ronald van Haren <ronald.archlinux.org>
# Contributor: nesl247 <nesl247@gmail.com>
# Contributor: JJDaNiMoTh <jjdanimoth@gmail.com>

_upstream=fusion-icon

pkgname=fusion-icon-git
epoch=1
pkgver=0.2.3.r4.g84e27a8
pkgrel=1
pkgdesc="Simple tray icon for Compiz 0.8"
arch=('any')
url="http://www.compiz.org/"
license=('GPL')
conflicts=('fusion-icon0.9' 'fusion-icon')
provides=('fusion-icon')
depends=('compizconfig-python' 'hicolor-icon-theme' 'xorg-utils' 'mesa-demos')

# presume that if compizconfig-python deps are met, it's against python2
_python="python"
_sitearch_check="from distutils import sysconfig; print(sysconfig.get_python_lib(plat_specific=1))"

# do we have a python2 compizconfig-python?
if [[ -f "$(python2 -c "${_sitearch_check}")/compizconfig.so" ]]; then
	_python=python2
fi

# Note to anyone who builds this: Make sure you install the appropriate
# dependencies for the user interfaces you want to use! Otherwise, it'll appear
# like it's not working!
# Also - change these to python2 if you're using Compiz 0.9.x
optdepends=(
	"${_python}-pyqt5: For the Qt Interface"
	"${_python}-gobject: For the GTK+ Interface"
	'libappindicator-gtk3: For the GTK+ Interface'
)

install="$pkgname.install"
source=("git+https://github.com/compiz-reloaded/${_upstream}")

pkgver() {
  cd "${srcdir}/${_upstream}"
  git describe --long --tags|sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${_upstream}"
  # Change to python2 if using Compiz 0.9.x
  "${_python}" ./setup.py build
}

package() {
  cd "${srcdir}/${_upstream}"
  # Change to python2 if using Compiz 0.9.x
  "${_python}" ./setup.py install --root="$pkgdir" --optimize=1
}

sha256sums=('SKIP')