milis/talimatname/temel/e2fsprogs/talimat

47 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Utilities for handling the ext2,3 and 4 files system.
# URL: http://e2fsprogs.sourceforge.net/
# Paketçi: milisarge
# Gerekler:
name=e2fsprogs
version=1.42.13
release=1
source=(http://prdownloads.sourceforge.net/$name/$name-$version.tar.gz)
derle() {
cd $name-$version
sed -e '/int.*old_desc_blocks/s/int/blk64_t/' \
-e '/if (old_desc_blocks/s/super->s_first_meta_bg/desc_blocks/' \
-i lib/ext2fs/closefs.c
mkdir -v build
cd build
LIBS=-L/tools/lib \
CFLAGS=-I/tools/include \
PKG_CONFIG_PATH=/tools/lib/pkgconfig \
../configure --prefix=/usr --with-root-prefix="" --libdir=/lib \
--bindir=/bin --sbindir=/sbin \
--enable-elf-shlibs --disable-libblkid --disable-libuuid --disable-uuidd \
--disable-fsck
make
# somes tests may fails
# make check||true
make DESTDIR=$PKG install install-libs || make -j1 DESTDIR=$PKG install install-libs
chmod -v u+w $PKG/lib/{libcom_err,libe2p,libext2fs,libss}.a
gunzip -v $PKG/usr/share/info/libext2fs.info.gz
makeinfo -o doc/com_err.info ../lib/et/com_err.texinfo
install -v -m644 doc/com_err.info $PKG/usr/share/info
rm -rf $PKG/usr/share/info/dir
mkdir $PKG/usr/lib
mv $PKG/lib/pkgconfig \
$PKG/usr/lib
}