APP=numlockx
VERSION=1.2
BUILD=1sml
HOMEPAGE="https://github.com/rg3/numlockx"
DOWNLOAD="https://github.com/rg3/numlockx/archive/refs/tags/1.2.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
"
