blob: c8d430f623bc5818bf394713c81c416666a3a16f (
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
|
# Maintainer: Raimar Buehmann (raimar)
pkgname=lxsession-git
pkgver=0.5.5.r1089.20240322
pkgrel=1
epoch=1
pkgdesc='Lightweight X11 session manager'
arch=('i686' 'x86_64')
url="http://lxde.org/"
license=('GPL2')
groups=('lxde-git')
depends=('polkit' 'dbus-glib' 'libunique' 'libkeybinder2'
'libappindicator-gtk2'
'libnotify'
)
makedepends=('git' 'pkgconfig' 'intltool' 'docbook-xml' 'docbook-xsl' 'vala' 'autoconf')
provides=('lxsession' 'lxsession-edit' 'lxpolkit' 'lxde-settings-daemon' 'lxsession-lite')
conflicts=('lxsession' 'lxsession-edit' 'lxpolkit' 'lxde-settings-daemon' 'lxsession-lite')
source=(
$pkgname::git+https://github.com/lxde/lxsession.git
# $pkgname::git+http://git.lxde.org/git/lxde/lxsession.git
# $pkgname::git+git://git.lxde.org/git/lxde/lxsession.git
lxclipboard-startup.desktop
)
sha256sums=('SKIP'
'0c8b776b74da5bb7b126a6bde058318ed84808c50599849ce73ada88db4d58d0')
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
#patch -Np1 -i ../Create-lock-file-to-prevent-more-than-one-logout-dialog.patch
rm -f *.stamp
autoreconf -fi
}
build() {
cd $pkgname
./configure --prefix=/usr --sysconfdir=/etc --disable-buildin-clipboard --disable-buildin-polkit
make
}
package() {
install -Dm644 'lxclipboard-startup.desktop' "${pkgdir}/etc/xdg/autostart/lxclipboard-startup.desktop"
cd $pkgname
make DESTDIR="$pkgdir" install
}
|