# Maintainer: PktSurf <smlinux@pktsurf.in>
app=numlockx
version=1.2
build=1sml
homepage="https://github.com/rg3/numlockx"
download="https://github.com/rg3/numlockx/archive/refs/tags/$version.tar.gz"
requires="libxtst"
desc="Turns on the numlock key in X11"

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

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

build() {
  ./configure \
    --prefix=

  make
  make install DESTDIR=$pkg

  cp LICENSE $pkgdocs/
  install -Dm 644 $srcdir/numlockx.1 $pkg/share/man/man1/numlockx.1

  mkfinalpkg
}

sha512sums="
91a5636a0fe7d97635825f49d4ad7ec626207f47f28dd698aaa53672bf5b616f68ac3ef1b266a0d1634a89590dea1ff8210c9d377a88fc2c83a0e19b67cd9c64  numlockx-1.2.tar.lz
"
