#!/bin/bash

[ -d xtrlock-2.0 ] && rm -r xtrlock-2.0
tar xzvf xtrlock_2.0-13.tar.gz
cd xtrlock-2.0
make -f Makefile.noimake CFLAGS="-DSHADOW_PWD -march=i486 -mtune=i686 -O2 -pipe" LDLIBS="-lX11 -lcrypt" xtrlock || return 1
#strip --strip-unneeded xtrlock
# set binary SUID group.
echo "All's well that builds well"
