summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c0881889177487ed3c3d56bd3dc0080a8ffa30e8 (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
# Maintainer: twa022 <twa022 at gmail dot com>
# Contributor: Alexey Rochev <equeim at gmail dot com>

_gtk=3
_pkgname=snw-plugin
pkgname="xfce4-${_pkgname}"
pkgver=0.10.0
pkgrel=2
url="https://github.com/equeim/snw-plugin"
pkgdesc="Xfce panel plugin to show StatusNotifierItems (AppIndicators)"
arch=('i686' 'x86_64')
license=('GPL3')
depends=('xfce4-panel')
if [[ ${_gtk} -eq 3 ]] ; then
	depends+=('libdbusmenu-gtk3')
	_gtkflag="--gtk3"
else
	depends+=('libdbusmenu-gtk2')
	_gtkflag=""
fi
makedepends=('vala' 'python' 'intltool')
source=("${_pkgname}-${pkgver}.tar.gz"::"${url}/archive/${pkgver}.tar.gz")
sha256sums=('e34241ce1b4a1d4f85bf12d05ecafce62032cdfd26ac9df247a79111cc79e343')

prepare() {
	cd "${srcdir}/${_pkgname}-${pkgver}"
	./waf configure --prefix="/usr" --libdir="/usr/lib" "${_gtkflag}"
}

build() {
	cd "${srcdir}/${_pkgname}-${pkgver}"
	./waf build
}

package() {
	cd "${srcdir}/${_pkgname}-${pkgver}"
	./waf install --destdir="${pkgdir}"
}