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"

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

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

  ./configure \
    --prefix="" 

  make
  make install DESTDIR=$pkg

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

  mkfinalpkg
}

sha512sums="
efaaa67e8b2723cb1e8461dde664f1f8e9b21f34edfe2e1135a6b756fa2843aed1a386f2f9d70bd62ddae9aedfeeff856a18da8b542f2cff440f93b38e5a853e  numlockx-1.2.tar.gz
"
