#!/usr/bin/env beesh

# BEE_VERSION man-pages-5.11-0

# Vorsicht! Ab 5.12 installiert das Makefile nach /usr/local und macht noch anderen Quatsch.

#SRCURL[0]="https://www.kernel.org/pub/linux/docs/man-pages/man-pages-${PKGVERSION}.tar.xz"
SRCURL[0]="https://beehive.molgen.mpg.de/9f40e8fff6766563837d98d7d7c6e19b/man-pages-${PKGVERSION}.tar.xz"

# bee check man-pages

# PATCHURL+=()

# build_in_sourcedir

# sourcesubdir_append src

#mee_extract() {
#    bee_extract "${@}"
#}

#mee_patch() {
#    bee_patch "${@}"
#}

#mee_configure() {
#    bee_configure
#}

mee_build() {
    # a "make" without a target invokes the defail targets "screen" "remove" "install"
    # we don't need the targets "screen" and "remove". Both go directory
    # to $MANDIR ignoring $DESTDIR
    true
}

mee_install_post() {
    # [BEE] Conflicts with installed package found: shadow-4.1.5.1-3.x86_64:
    rm ${D}/usr/share/man/man3/getspnam.3
    rm ${D}/usr/share/man/man5/passwd.5
}