APP=libpciaccess
VERSION=0.16
BUILD=1sml
HOMEPAGE="https://xorg.freedesktop.org/"
DOWNLOAD="https://xorg.freedesktop.org/releases/individual/lib/libpciaccess-0.16.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
"
