# Maintainer: PktSurf <smlinux@pktsurf.in>
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/$version.tar.gz"
desc="Xorg video driver for devices with ARM Allwinner SoCs and raspberry pi older models"
requires="xorg-server"

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

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

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

  make
  make install DESTDIR=$pkg
  
  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
a986179835d3f4998c07e51c5554563beab171d5fc8e8907ac9a6d5698e27243621d96710868ec714f4617abd3862d810d98d7641673fb8f1629d8e53a8bcaf1  xf86-video-fbturbo-0.4.0.tar.lz
"
