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

pkgname=xorg-iceauth
pkgver=1.0.11
pkgrel=1
pkgdesc="ICE authority file utility"
arch=(x86_64 aarch64)
url="https://gitlab.freedesktop.org/xorg/app/iceauth"
license=('MIT-open-group')
depends=('libice' 'glibc')
makedepends=('xorg-util-macros' 'xorgproto')
groups=('xorg-apps' 'xorg')
source=(https://xorg.freedesktop.org/archive/individual/app/iceauth-${pkgver}.tar.xz{,.sig})
sha512sums=('7b3dffb2c1209e00bc11301ace3f802f052ae1062fba20011787ac185e2fd3a6c96ede3ddf37d9be3e41fa91f381e42e71fd61a7e63e8e3945351e16af2f57a6'
            'SKIP')
validpgpkeys=('3AB285232C46AE43D8E192F4DAB0F78EA6E7E2D2') # Alan Coopersmith <alan.coopersmith@oracle.com>

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

package() {
  cd iceauth-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}
