# Description: LSB version query program
# URL: https://www.linuxbase.org
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: bash

name=lsb-release
version=3.2
release=1
source=(https://github.com/thkukuk/lsb-release_os-release/archive/v$version/$name-$version.tar.gz)

build() {
  cd ${name}_os-release-$version
  make
  make INSTALL_ROOT=$PKG/usr install

  install -dm755 "$PKG/etc"
  cat <<- EOF > $PKG/etc/lsb-release
# only uncomment if we are LSB compliant and certified..
#LSB_VERSION=$version
DISTRIB_ID=CRUX
DISTRIB_RELEASE=$(crux | awk '{ print $3 }')
DISTRIB_CODENAME=CRUX
DISTRIB_DESCRIPTION="CRUX is a lightweight Linux distribution for the x86-64 architecture targeted at experienced Linux users"
EOF
}
