# Packager = Tuxcore <dev@tuxcore.org> 
pkgname=libxinerama
pkgver=1.1.5
pkgrel=1
pkgdesc="X11 Xinerama extension library"
arch=('x86_64')
url="https://xorg.freedesktop.org/"
license=('custom')
depends=('libxext')
makedepends=('xorg-util-macros' 'xorgproto')
source=("${url}"/archive/individual/lib/libXinerama-${pkgver}.tar.xz{,.sig})
sha512sums=('735b5320de4782005b379e409bf2f976131c17d496b297d33a0e127ca1443034778586b6b25c077b2ad73a4ab34d440d7510475e0041f38202bb40f15fb08ff7'
            'SKIP')

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

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