APP=eudev
VERSION=3.2.9
BUILD=1sml
HOMEPAGE='https://wiki.gentoo.org/wiki/Eudev'
DOWNLOAD='http://sources.buildroot.net/eudev/eudev-3.2.9.tar.gz'
DESC="Independent fork of udev dynamic device manager by Gentoo devs"
REQUIRES="util-linux"

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

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

  ./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/

  mv $PKG/share/pkgconfig/* $PKG/lib/pkgconfig/ 
  rm -rf $PKG/share

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
a239ca799e3b18bc058ab120dd8636e360ad9e579ea15d21718ac4eee7ad2a74720e83f66eb3dfaa22443f3ee8db64ef4e0d254dbcf98e2fbe37ecaec40075b1  eudev-3.2.9.tar.lz
"
