summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1fa08e0fc210940f72464f6c19c2b0fdb967f710 (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
# Maintainer: Jerome Leclanche <jerome@leclan.ch>

_pkgname=lxqt-panel
pkgname=$_pkgname-git
pkgver=0.10.0.129.g1c48664
pkgrel=1
pkgdesc="The LXQt desktop panel"
arch=("i686" "x86_64")
url="http://lxqt.org"
license=("GPL2")
# Since https://github.com/lxde/lxqt-panel/pull/281, liblxqt-git is necessary
depends=(
	"liblxqt-git"
	"kwindowsystem" "kguiaddons" "solid" "lxqt-globalkeys"
	"menu-cache" "libxcomposite" "lxmenu-data" "libdbusmenu-qt5"
)
optdepends=(
	"alsa-lib: Recompile for Alsa support in volume control plugin"
	"libpulse: Recompile for PulseAudio support in volume control plugin"
	"lm_sensors: Recompile for Sensors (battery) plugin"
	"libstatgrab: Recompile for network and CPU monitor plugin"
)
makedepends=("git" "cmake" "qt5-tools")
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/lxde/$_pkgname.git")
sha256sums=('SKIP')


pkgver() {
	cd "$srcdir/$_pkgname"
	git describe --always | sed "s/-/./g"
}

build() {
	mkdir -p build
	cd build
	cmake "$srcdir/$_pkgname" \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		-DSYSSTAT_PLUGIN=No
	make
}

package() {
	cd build
	make DESTDIR="$pkgdir" install
}