# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-xeyes
pkgver=1.3.1
pkgrel=1
pkgdesc="Follow the mouse/SHAPE extension X demo"
arch=('x86_64' 'aarch64')
url="https://xorg.freedesktop.org/"
license=('X11')
depends=('libx11' 'libxt' 'libxext' 'libxmu' 'libxrender' 'libxi'
         'libxcb' 'glibc')
makedepends=('xorg-util-macros' 'libxfixes')
source=(https://xorg.freedesktop.org/archive/individual/app/xeyes-${pkgver}.tar.xz{,.sig})
sha512sums=('c0c3e25b1685cc943c8d27f88c4d3ec79aa05c102ba7ac0cbd7dcebdf703111ecb2288f4bac55d9ffc5b7aa3b15cba58f28c21025a53b415a8a18bdb61688dcf'
            'SKIP')
# validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # "Alan Coopersmith <alan.coopersmith@oracle.com>"
validpgpkeys=('3AB285232C46AE43D8E192F4DAB0F78EA6E7E2D2') # Alan Coopersmith <alan.coopersmith@oracle.com>

build() {
  cd "xeyes-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "xeyes-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
