#!/bin/bash NAME=xorg_conf VER=1.0 CWD=`pwd` PKGTMP=/tmp/pkgtmp mkdir -p $PKGTMP &>/dev/null mkdir -p $PKGTMP/etc/X11/syn-3 || exit 1 cp confs/* $PKGTMP/etc/X11/syn-3 || exit 1 #run script mkdir -p $PKGTMP/service/X || exit 1 cp run $PKGTMP/service/X/run || exit 1 chmod +x $PKGTMP/service/X/run || exit 1 #postinst mkdir -p $PKGTMP/etc/postinst.d cp post.xorg_conf $PKGTMP/etc/postinst.d || exit 1 chmod +x $PKGTMP/etc/postinst.d/post.xorg_conf || exit 1 cd "$PKGTMP" || exit 1 makepkg -l y -c n $CWD/$NAME.pkg > /dev/null && echo $VER > $CWD/$NAME.version && arch > $CWD/$NAME.arch