app=rp-pppoe
version=3.13
build=1sml
homepage="https://dianne.skoll.ca/projects/rp-pppoe/"
desc="Client program for establishing connectivity over PPPoE"
requires="ppp"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

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

  applypatch $srcdir/musl-fix.patch

  cd src

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --sbindir=/bin \
    --enable-plugin=/include/pppd

  make all
  make install DESTDIR=$pkg 

  mkfinalpkg
}

sha512sums="
140e3bf11910cea3c0f04a5b8fe9c72dd607dfdec1a6ef14475c4ff28f1fcb51fb6528d50182d5772e3a7bc3df0f4a795a27de47b0e52b9d3f9443893cc16605  rp-pppoe-3.13.tar.lz
5f7e9d50be7c4b007bc2f86cee42b8e5dc4ead6a8def618441c0db0ecb083a6631bd90d6292279c2188986820f7b8f488b41ff6cb186bb541e3e705858a21034  musl-fix.patch
"
