pakur.sh 762 B

123456789101112131415161718192021222324252627282930
  1. mkdir -pv $PKG/usr/lib/{firmware,udev/devices/pts,udev/devices/shm}
  2. mkdir -pv $PKG/usr/lib/udev/rules.d
  3. mkdir -pv $PKG/etc/udev/rules.d
  4. if [ -d /tools ];then
  5. make LD_LIBRARY_PATH=/tools/lib DESTDIR=$PKG install
  6. else
  7. make DESTDIR=$PKG install
  8. fi
  9. # man sayfalar
  10. pushd man
  11. make DESTDIR=$PKG install-man7 install-man8
  12. cd $SRC
  13. make -j1 -f udev-lfs-20171102/Makefile.lfs DESTDIR=$PKG install
  14. # DB
  15. if [ -d /tools ];then
  16. LD_LIBRARY_PATH=/tools/lib $PKG/usr/bin/udevadm hwdb --update --root=$PKG
  17. else
  18. $PKG/usr/bin/udevadm hwdb --update --root=$PKG
  19. fi
  20. rm -f $PKG/etc/udev/hwdb.bin
  21. rm -rf $PKG/usr/share/doc
  22. rm -rf $PKG/usr/lib/*.la
  23. mkdir -p $PKG/usr/lib/udev/keymaps/force-release
  24. rm -rf $PKG/lib/udev/rules.d
  25. mv $PKG/lib/udev/* $PKG/usr/lib/udev/
  26. rm -rf $PKG/lib