#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=xorg-xauth
pkgver=1.1.2
pkgrel=01
pkgdesc="X.Org authorization settings program"
arch=(x86_64)
url="https://xorg.freedesktop.org/"
depends=('libxmu')
makedepends=('xorg-util-macros')
groups=('xorg-apps' 'xorg')
source=(${url}/releases/individual/app/xauth-${pkgver}.tar.xz{,.sig})

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

check() {
  cd xauth-${pkgver}
  make check
}

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

#---- license gpg-key sha256sums ----

license=('custom')

#validpgpkeys+=('995ED5C8A6138EB0961F18474C09DD83CAAA50B2') # "Adam Jackson <ajax@nwnk.net>"
#validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # "Alan Coopersmith <alan.coopersmith@oracle.com>"
validpgpkeys=('3BB639E56F861FA2E86505690FDD682D974CA72A') # Matt Turner <mattst88@gmail.com>

sha256sums=(78ba6afd19536ced1dddb3276cba6e9555a211b468a06f95f6a97c62ff8ee200 # xauth-1.1.2.tar.xz
	35c9ae36de1b51749ebc65aef1da14c636b046f8e733fcec23ac18a3d2b5d584) # xauth-1.1.2.tar.xz.sig
