pkgname=xtrans
pkgver=1.6.0
pkgdesc="X transport library"
arch=('any')
license=('HPND'
         'HPND-sell-variant'
         'MIT'
         'MIT-open-group'
         'X11')
homepage="https://xorg.freedesktop.org/"
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://xorg.freedesktop.org/releases/individual/lib/${sources[0]}")
md5sums=("6ad67d4858814ac24e618b8072900664")

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

src_build() {
  ./configure --prefix=/usr \
    --disable-docs \
    --without-xmlto \
    --without-fop
}

src_install() {
  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}

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