# Maintainer: PktSurf <smlinux@pktsurf.in>
app=eudev
version=3.2.11
build=1sml
homepage="https://wiki.gentoo.org/wiki/Eudev"
download="http://sources.buildroot.net/eudev/eudev-$version.tar.gz"
desc="Independent fork of udev dynamic device manager by Gentoo devs"
requires="util-linux"
preservestaticlibs=1

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

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

build() {
  ./configure \
    --prefix= \
    --bindir=/bin \
    --sbindir=/bin \
    --sysconfdir=/etc \
    --disable-introspection 

  make
  make install DESTDIR=$pkg

  mkdir -p $pkg/etc/udev/rules.d
  cp $srcdir/*.rules $pkg/etc/udev/rules.d/

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
b54dac70e4a683b4fb0281f9147e1cc2faa8bd7b06ee0929a562db223b21da48ddd13889062595b19421bcdb54de23ee38aa8ff1e2d7fed9f673bc82434a3a8d  eudev-3.2.11.tar.lz
"
