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

pkgname=lxtask-git
pkgver=0.1.10.r442.20211031
pkgrel=1
pkgdesc="Lightweight X11 task manager and system monitor for LXDE Desktop"
arch=('i686' 'x86_64')
license=('GPL2')
groups=('lxde-git')
depends=('gtk2')
makedepends=('autoconf' 'automake' 'gcc' 'libtool' 'make' 'pkgconfig' 'git' 'intltool')
provides=('lxtask')
conflicts=('lxtask')
replaces=('lxtask')
url="https://lxde.org/"
source=(
	$pkgname::git+https://github.com/OpenHelios/lxtask-mirror.git
#	https://downloads.sourceforge.net/lxde/lxtask-0.1.8.tar.xz
#	$pkgname::git+https://git.lxde.org/git/lxde/lxtask.git
#	$pkgname::git+git://git.lxde.org/git/lxde/lxtask.git
)
sha256sums=(
	'SKIP'
)
_gitroot=$pkgname
pkgver() {
	# remove ".r*.*" from package version
	_pkgverTriple=$(echo $pkgver | sed "s/\.r.*//g")
	cd $_gitroot
	# 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"
}
build() {
	cd $_gitroot
	autoreconf --install --force
	./configure --prefix=/usr --sysconfdir=/etc
	make
}
package() {
	cd $_gitroot
	make DESTDIR="$pkgdir" install
}