APP=sudo
VERSION=1.9.0
BUILD=1sml
HOMEPAGE="https://www.sudo.ws/"
DOWNLOAD="https://www.sudo.ws/dist/sudo-1.9.0.tar.gz"
DESC="give limited root privileges to certain users"
REQUIRES="zlib"
SM_NOAUTOCONFSITE=1


build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --sbindir=/bin \
    --libexecdir=/lib \
    --with-env-editor \
    --disable-pam-session \
    --without-pam \
    --disable-nls 

  make
  make install DESTDIR=$PKG

  cp doc/LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
9142a86662151b9b598dfe7379990226f8b735343ac93341f6c152eb210dbc82d744041b86f231618cb2166924d4aace76391a186ad632041093b3809651e4dc  sudo-1.9.0.tar.lz
5b8a3b5762b622019f6d8fe54a0e9cc1371055ea9f19e1a07ec783f569fbbbdb13bd2348ef501ce34a361511ca5917ae51c21293d3aafbf0b6f39d126bb9daa0  020-no-owner-change.patch
"
