blob: 73154c71d52827d05cd3fbaa6774b6045fd283fb (
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
|
# Maintainer: yadieet <yadieet@gmail.com>
pkgname=sudx
pkgver=1.0
pkgrel=1
pkgdesc="Run \`su --login <user>\` shell via dbus-run-session, useful for running GUI/X applications as another user."
url="https://github.com/yadieet/sudx"
arch=('i686' 'x86_64')
depends=('dbus' 'util-linux')
makedepends=('systemd' 'python')
license=('GPL2')
options=('strip')
ulmajver=2.28
ulminver=2
source=("https://www.kernel.org/pub/linux/utils/util-linux/v$ulmajver/util-linux-$ulmajver.$ulminver.tar."{xz,sign}
"https://raw.githubusercontent.com/yadieet/sudx/09e6ddb38465be53a1a1e276585cf53eb0b73114/sudx.patch")
md5sums=('46a232a37bce45371a86d19300edc47a'
'SKIP'
'e13b6cd9cd32d4d31becf7b27f4e2f08')
prepare() {
cd "util-linux-$ulmajver.$ulminver"
patch -p1 -i ../sudx.patch
}
build() {
cd "util-linux-$ulmajver.$ulminver"
./configure --prefix=/usr \
--libdir=/usr/lib \
--bindir=/usr/bin \
--localstatedir=/run \
--enable-fs-paths-extra=/usr/bin \
--enable-raw \
--enable-vipw \
--enable-newgrp \
--enable-chfn-chsh \
--enable-write \
--enable-mesg \
--enable-libmount-force-mountinfo \
--with-python=3
make su
}
package() {
cd "util-linux-$ulmajver.$ulminver"
install -D -m4755 su ${pkgdir}/usr/bin/sudx
}
|