APP=xf86-video-fbturbo
VERSION=0.4.0
BUILD=1sml
HOMEPAGE="https://github.com/ssvb/xf86-video-fbturbo"
DOWNLOAD="https://github.com/ssvb/xf86-video-fbturbo/archive/refs/tags/0.4.0.tar.gz"
DESC="Xorg video driver for devices with ARM Allwinner SoCs and raspberry pi older models"
REQUIRES="xorg-server"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

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

  make
  make install DESTDIR=$PKG
  
  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
9675f7df7811cc4607baefeb6cfef93df618a2995675f5e1b316b4f703da758b04f909d887a6c9d0d7f274a215036864ea712fcf76d50f5084321ea3dbd3e23c  xf86-video-fbturbo-0.4.0.tar.gz
"
