app=man-pages
version=5.13
build=1sml
homepage="https://www.kernel.org/doc/man-pages/"
download="https://cdn.kernel.org/pub/linux/docs/man-pages/man-pages-$version.tar.xz"
desc="Linux man pages"
requires="musl"
   
build() {
  mkandenterbuilddir
  rm -rf $app-$version

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

  make install prefix="" DESTDIR=$pkg

  # Provided by mandoc
  rm -fv "$pkg"/share/man/man7/man* \
    "$pkg"/share/man/man7/mdoc*

  # Provided by tzdata
  rm -fv "$pkg"/share/man/man5/tzfile* \
    "$pkg"/share/man/man8/tzselect* \
    "$pkg"/share/man/man8/zic* \
    "$pkg"/share/man/man8/zdump*

  mkfinalpkg
}

sha512sums="
a68c0bd5f078aff2f13f962060863e5d30734c1c562e8e9e3d5eda5a329b18ad3e9b4ebb883d31cacfc0a476f91fccb8dd4257598acd75d09dd21351893d3499  man-pages-5.13.tar.xz
"
