summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4edbaf3af4524f0f3c877dcb24accce4f2bb0b5c (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
# Maintainer: Adrian Freund <freundadrian@gmail.com>
_pkgname=xuserrun
pkgname=$_pkgname-dbus-git
pkgver=r7.e2b13c5
pkgrel=1
pkgdesc="Run commands as the currently-active X11 user while also using his dbus-session"
arch=('any')
url="https://github.com/freundTech/xuserrun"
license=('custom:UNLICENSE')
depends=('systemd')
makedepends=('git')
provides=('xuserrun')
conflicts=('xuserrun')
source=("$_pkgname::git+https://github.com/freundTech/xuserrun.git")
sha256sums=("SKIP")

pkgver() {
	cd "$srcdir/$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/$_pkgname"
	install -Dm755 $_pkgname "$pkgdir/usr/bin/$_pkgname"
	install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}