# Maintainer: yadieet pkgname=sudx pkgver=1.2 pkgrel=1 pkgdesc="Run bash shell as another user with D-Bus enabled, useful for running GUI/X applications that need D-Bus." url="https://github.com/yadieet/sudx" arch=('i686' 'x86_64') ulmajver=2.28 ulminver=2 depends=('bash' 'dbus' "util-linux=$ulmajver.$ulminver") makedepends=('systemd' 'python') license=('GPL2') options=('strip') source=("https://www.kernel.org/pub/linux/utils/util-linux/v$ulmajver/util-linux-$ulmajver.$ulminver.tar.xz" "sudx-$pkgver.patch::https://raw.githubusercontent.com/yadieet/sudx/cc20016cdee6ae193986c04bbd6195f97784673f/sudx.patch") md5sums=('46a232a37bce45371a86d19300edc47a' '5ec027df0a92860951f6f8f45cfcb76a') prepare() { cd "util-linux-$ulmajver.$ulminver" patch -p1 -i ../sudx-$pkgver.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 }