milis/talimatname/temel/e2fsprogs/talimat

47 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-27 21:56:50 +02:00
# Tanım: Utilities for handling the ext2,3 and 4 files system.
2016-02-24 01:27:23 +01:00
# URL: http://e2fsprogs.sourceforge.net/
2017-10-27 21:56:50 +02:00
# Paketçi: milisarge
# Gerekler:
2016-02-24 01:27:23 +01:00
name=e2fsprogs
version=1.42.13
release=1
source=(http://prdownloads.sourceforge.net/$name/$name-$version.tar.gz)
2017-10-27 21:56:50 +02:00
build() {
2016-02-24 01:27:23 +01:00
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
}