summaryrefslogtreecommitdiff
path: root/desktop/slock/slock.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/slock/slock.SlackBuild')
-rw-r--r--desktop/slock/slock.SlackBuild13
1 files changed, 13 insertions, 0 deletions
diff --git a/desktop/slock/slock.SlackBuild b/desktop/slock/slock.SlackBuild
index e3e232f5a1..0b51ea5f65 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}