app=dwm
version=6.3
build=1sml
homepage="https://dwm.suckless.org"
download="https://dl.suckless.org/dwm/dwm-6.3.tar.gz"
desc="Suckless dynamic window manager"
requires="libxinerama libxext"

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

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

  sed -i "s@-Wno-deprecated-declarations -Os@-Wno-deprecated-declarations $CFLAGS@g" config.mk
  #sed -i "s@LDFLAGS = -s@LDFLAGS = @g" config.mk

  make
  make install PREFIX="/" MANPREFIX=/share/man DESTDIR=$pkg 

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
9454eee61e15a4b382efc27df0431ac4611efb8beaed6ff4f91fe62c72d1c2fe1aad466cf10e5716292c51fd41a6ff0f5ec14f8497311fb964f82d199b25a97a  dwm-6.3.tar.lz
"
