summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 240d3c57c554965586667ec610e8016a5cadf593 (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
# Maintainer: Raimar Buehmann (raimar)

pkgname=lxpanel-git
pkgver=0.10.1.r2514.20230817
pkgrel=1
pkgdesc='Lightweight X11 desktop panel for LXDE'
arch=('i686' 'x86_64')
license=('GPL2')
url='https://lxde.org/'
groups=('lxde-git')
depends=('alsa-lib' 'lxmenu-data' 'libwnck' 'libfm' 'libkeybinder2')
makedepends=('intltool' 'docbook-xml' 'docbook-xsl' 'wireless_tools' 'git')
provides=('lxpanel')
conflicts=('lxpanel')
optdepends=('wireless_tools: netstat plugin')
source=(
	$pkgname::git+https://github.com/lxde/lxpanel
#	$pkgname::git+https://git.lxde.org/git/lxde/lxpanel.git
#	$pkgname::git+http://git.lxde.org/git/lxde/lxpanel.git#commit=66b35a6e2d9d52a4bf9be326c132e41e34eda71e
#	$pkgname::git+git://git.lxde.org/git/lxde/lxpanel.git
#	lxpanel-volumealsa-volume-mapping.patch
)
sha256sums=('SKIP'
#            '926cdd81eb11b2be7aec1bb9889b88a07d7bd0ca7c22868e7eb4d5ff734fde1b'
)

pkgver() {
	# remove ".r*.*" from package version
	_pkgverTriple=$(echo $pkgver | sed "s/\.r.*//g")
	cd $pkgname
	# get number of last git commit
	_commitCount=$(git rev-list --count HEAD)
	# get time of last git commit
	_commitTime=$(git show -s --format="%ci" | grep -o "....-..-.." | sed "s/-//g")
	# add ".r*.*" from package version
	echo "$_pkgverTriple.r$_commitCount.$_commitTime"
}

prepare() {
	cd $pkgname
	# revert autohide by using timer on pointer every 300ms
	#git revert --no-edit e1fd11eee26bf6150c42216f2e825b35b48f50b7
	#git revert --no-edit 9a2c13d033233b273205e655600ff11d7e928af1
#	patch -Np1 -i ../lxpanel-volumealsa-volume-mapping.patch
}

build() {
	cd $pkgname
	./autogen.sh
	CFLAGS+=' -lgmodule-2.0'
	./configure --prefix=/usr --sysconfdir=/etc --enable-man
	make
}

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