APP=slock
VERSION=1.4
BUILD=1sml
HOMEPAGE="https://tools.suckless.org/slock/"
DOWNLOAD="https://dl.suckless.org/tools/slock-1.4.tar.gz"
DESC="Simple X display locker"
REQUIRES="libxext"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  sed -i "s@-Wall -Os@$CFLAGS@g" config.mk

  make 
  make install PREFIX="/" DESTDIR=$PKG 

  cp LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
74b69dd493266fdfca5257dd7ff0ba6cd50efd30febc4f8576c1f92e15a5225a933784a7dae8e0b0be72e4258d747c396c46a214675f1c6efdebe5bb453226b1  slock-1.4.tar.lz
"
