talimat 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Tanım: Utilities for handling the ext2,3 and 4 files system.
  2. # URL: http://e2fsprogs.sourceforge.net/
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. isim=e2fsprogs
  6. surum=1.42.13
  7. devir=1
  8. kaynak=(http://prdownloads.sourceforge.net/$isim/$isim-$surum.tar.gz)
  9. derle() {
  10. cd $isim-$surum
  11. sed -e '/int.*old_desc_blocks/s/int/blk64_t/' \
  12. -e '/if (old_desc_blocks/s/super->s_first_meta_bg/desc_blocks/' \
  13. -i lib/ext2fs/closefs.c
  14. mkdir -v build
  15. cd build
  16. LIBS=-L/tools/lib \
  17. CFLAGS=-I/tools/include \
  18. PKG_CONFIG_PATH=/tools/lib/pkgconfig \
  19. ../configure --prefix=/usr --with-root-prefix="" --libdir=/lib \
  20. --bindir=/bin --sbindir=/sbin \
  21. --enable-elf-shlibs --disable-libblkid --disable-libuuid --disable-uuidd \
  22. --disable-fsck
  23. make
  24. # somes tests may fails
  25. # make check||true
  26. make DESTDIR=$PKG install install-libs || make -j1 DESTDIR=$PKG install install-libs
  27. chmod -v u+w $PKG/lib/{libcom_err,libe2p,libext2fs,libss}.a
  28. gunzip -v $PKG/usr/share/info/libext2fs.info.gz
  29. makeinfo -o doc/com_err.info ../lib/et/com_err.texinfo
  30. install -v -m644 doc/com_err.info $PKG/usr/share/info
  31. rm -rf $PKG/usr/share/info/dir
  32. mkdir $PKG/usr/lib
  33. mv $PKG/lib/pkgconfig \
  34. $PKG/usr/lib
  35. }