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

pkgname=lxtask-git
pkgver=0.1.9.r411.20190912
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.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.r411.$_commitTime"
}

build() {
	cd $_gitroot
	autoreconf
	./configure --prefix=/usr --sysconfdir=/etc
	make
}

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