# SliTaz package receipt. PACKAGE="xorg-xinit" VERSION="1.4.1" CATEGORY="x-window" TAGS="utility xorg" SHORT_DESC="X.org initialization program." MAINTAINER="jozee@slitaz.org" LICENSE="MIT" WEB_SITE="https://www.x.org/wiki/" SOURCE="xinit" TARBALL="$SOURCE-$VERSION.tar.bz2" WGET_URL="$XORG_MIRROR/app/$TARBALL" DEPENDS="xorg-xauth" BUILD_DEPENDS="xorg-libXmu-dev" current_version() { wget -O - $(dirname $WGET_URL) 2>/dev/null | \ sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package.ls sr compile_rules() { patch -Np1 -i $stuff/06_move_serverauthfile_into_tmp.diff ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make XINITDIR=/etc/X11/xinit && make XINITDIR=/etc/X11/xinit DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr mkdir -p $fs/etc/X11/xinit cp -a $install/usr/bin $fs/usr cp -a $stuff/xserverrc $fs/etc/X11/xinit/xserverrc } pre_install() { cp -a /usr/bin/startx /usr/bin/startx.bak }