diff options
author | Mario Preksavec <mario at slackware dot hr> | 2015-03-22 21:32:44 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-03-29 07:38:41 +0700 |
commit | 85f5c5f0f3773030c1fd80677e744bd75073617d (patch) | |
tree | 9126675f95f3ff3798c9b293f3c400efc10c484c /desktop/slock/slock.SlackBuild | |
parent | f8288ef7f8da5a6a30e1a008745450b97152f73c (diff) |
desktop/slock: Add failcolor diff and optional xflock support
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'desktop/slock/slock.SlackBuild')
-rw-r--r-- | desktop/slock/slock.SlackBuild | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/desktop/slock/slock.SlackBuild b/desktop/slock/slock.SlackBuild index e3e232f5a141..0b51ea5f6551 100644 --- a/desktop/slock/slock.SlackBuild +++ b/desktop/slock/slock.SlackBuild @@ -20,6 +20,8 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Modified by Mario Preksavec <mario@slackware.hr> + PRGNAM=slock VERSION=${VERSION:-1.2} BUILD=${BUILD:-2} @@ -69,6 +71,12 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Support upstream failcolor patch +# http://tools.suckless.org/slock/patches/failcolor +if [ "${FAILCOLOR:-no}" != "no" ]; then + patch -p1 <$CWD/slock-1.2-failcolor.diff +fi + # This uses our CFLAGS defined above sed "s/@SLACKCFLAGS@/$SLKCFLAGS/" $CWD/config.mk.patch | patch -p1 @@ -91,5 +99,10 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +# User knows whats at stake +if [ "${OVERRIDEXFLOCK4:-no}" != "no" ]; then + cat $CWD/doinst.sh > $PKG/install/doinst.sh +fi + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |