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"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --enable-glamor 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
e21ca9bf1527d8bf7ccb90011a35ded474c5113ca461a9ea8d7e3862da1c266b717ba510c079fd1a7c7d7193cc694c55f848be49d357f87cc700641695e138e2  xf86-video-ati-19.1.0.tar.xz
"
