pkgname=libXfixes
pkgver=6.0.2
pkgdesc="X11 miscellaneous 'fixes' extension library"
arch=('x86_64')
homepage="https://xorg.freedesktop.org/"
license=('MIT' 'HPND-sell-variant')
depends=('libx11' 'xorg-proto' 'glibc')
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://xorg.freedesktop.org//releases/individual/lib/${sources[0]}")
md5sums=("baa39ada682dd524491a165bb0dfc708")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  ./configure --prefix=/usr --sysconfdir=/etc --disable-static
  make
}

src_install() {
  make DESTDIR="${pkgdir}" install

  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}

# vim:ft=sh syn=sh et sw=2:
