# Maintainer: PktSurf <smlinux@pktsurf.in>
app=xf86-video-ati
version=19.1.0
build=1sml
homepage="https://xorg.freedesktop.org/"
download="https://xorg.freedesktop.org/releases/individual/driver/xf86-video-ati-$version.tar.bz2"
desc="X.org ati video driver"
requires="mesa xorg-server llvm"

prepbuilddir() {
  compileonlyfor x86_64 
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --enable-glamor 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
f4bcb88be32001ed26dc6596ee5c507d1d60cd2fb40081c62724ecc345353da790b596be2f8834a0f914e0bced9f99eae829777d362f2b75cb3dcefdfe44865b  xf86-video-ati-19.1.0.tar.lz
"
