# Packager = Tuxcore <dev@tuxcore.org> 
pkgname=libxft
pkgver=2.3.8
pkgrel=2
pkgdesc="FreeType-based font drawing library for X"
arch=('x86_64')
license=('HPND-sell-variant')
url="https://xorg.freedesktop.org/"
depends=('fontconfig' 'libxrender' 'libx11' 'freetype2' 'glibc' 'xorgproto')
source=(${url}/releases/individual/lib/libXft-${pkgver}.tar.xz{,.sig})
sha512sums=('fc385d73e1acb701942c154ffb5a283d17891f21d3ac598c4a3fb375a7d6082734593062368c15cad67c1a94177dd15deed878ec5ea852188393b52e92c372c8'
            'SKIP')

build() {
  cd libXft-${pkgver}
  ./configure --prefix=/usr --sysconfdir=/etc --disable-static
  make
}

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

}
