app=libpciaccess
version=0.16
build=1sml
homepage="https://xorg.freedesktop.org/"
download="https://xorg.freedesktop.org/releases/individual/lib/libpciaccess-$version.tar.gz"
desc="X11 PCI access library"
requires="musl xorg-macros"

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

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

  ./configure \
    --prefix="" \
    --disable-static \
    --disable-selective-werror \
    --disable-strict-compilation 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
b84bc9045ddfdfcb8ad0b3fd710e211da40f0ffd17c41202ff6230e2b93e49efc5cb58cd0dc0320aef896f83c6c6b8367dce7b44f17fd79bc4233a1365216679  libpciaccess-0.16.tar.lz
"
