# Maintainer: PktSurf <smlinux@pktsurf.in>
app=slock
version=1.4
build=1sml
homepage="https://tools.suckless.org/slock/"
download="https://dl.suckless.org/tools/slock-$version.tar.gz"
desc="Simple X display locker"
requires="libxext"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

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

build() {
  make 
  make install PREFIX="/" DESTDIR=$pkg 

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

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