summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Newgard2013-09-04 03:53:48 -0500
committerDoug Newgard2013-09-04 03:53:48 -0500
commit2772edbc244c90ed470446a33bdc97fb5105ae66 (patch)
tree49405a80c1478b76fa613c0a23db5867c0bdc845
parent884717425de2ddc96dd4b17ae18a36b4dada36d2 (diff)
downloadaur-2772edbc244c90ed470446a33bdc97fb5105ae66.tar.gz
Modify entrance.conf for use with Arch
-rw-r--r--PKGBUILD10
1 files changed, 9 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 03458e41439..58088989500 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,7 +31,15 @@ pkgver() {
echo $_ver.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
-build () {
+prepare() {
+ sed -e '/"session_path"/ s|/bin:/usr/bin:/usr/local/bin|/usr/local/sbin:/usr/local/bin:/usr/bin|' \
+ -e '/"shutdown"/ s|/sbin/shutdown -h now|/usr/bin/systemctl poweroff|' \
+ -e '/"reboot"/ s|/sbin/shutdown -r now|/usr/bin/systemctl reboot|' \
+ -e '/"suspend"/ s|/usr/sbin/pm-suspend|/usr/bin/systemctl suspend|' \
+ -i "$srcdir/$_pkgname/data/entrance.conf"
+}
+
+build() {
cd "$srcdir/$_pkgname"
export CFLAGS="$CFLAGS -fvisibility=hidden"