# Maintainer: Doug Newgard # Contributor: meklu # Contributor: Samsagax # Contributor: Swift Geek _pkgname=entrance pkgname=$_pkgname-git pkgver=3.0.0_alpha3.r0.gb261cb1 pkgrel=1 pkgdesc="Enlightenment Display Manager" url="http://www.enlightenment.org/" license=('GPL3') arch=('i686' 'x86_64') depends=('efl' 'xorg-xauth' 'sudo') makedepends=('git') provides=("$_pkgname=$pkgver") conflicts=("$_pkgname") backup=('etc/entrance/entrance.conf') source=("git://github.com/Obsidian-StudiosInc/entrance") sha256sums=('SKIP') pkgver() { cd "$srcdir/$_pkgname" git describe --long --tags | sed 's/v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { sed -e '/"session_path"/ s|:.*|: "/usr/local/sbin:/usr/local/bin:/usr/bin";|' \ -e '/"shutdown"/ s|:.*|: "/usr/bin/systemctl poweroff";|' \ -e '/"reboot"/ s|:.*|: "/usr/bin/systemctl reboot";|' \ -e '/"suspend"/ s|:.*|: "/usr/bin/systemctl suspend";|' \ -i "$srcdir/$_pkgname/data/entrance.conf.in" } build() { cd "$_pkgname" arch-meson build \ -Dconsolekit=false \ -Dlogind=true ninja -C build } package() { cd "$_pkgname" DESTDIR="$pkgdir" ninja -C build install # install text files install -d "$pkgdir/usr/share/doc/$_pkgname/" install -Dm644 -t "$pkgdir/usr/share/doc/$_pkgname/" AUTHORS ChangeLog README }