#!/bin/sh # ###################################################### # Build script for RPI # # # # See .info for details # ###################################################### ###################################################### # Configure extension creation parameters # ###################################################### SRCNAM=e2fsprogs-1.42.10.tar.gz WRKDIR=e2fsprogs-1.42.10 EXTNAM=e2fsprogs TMPDIR=/tmp/e2fsprogs_base ###################################################### # Prepare extension creation # ###################################################### # Remove dirs and files left from previous creation rm -r -f $WRKDIR rm -r -f $TMPDIR-dev # Crete temporary directory mkdir -p $TMPDIR-dev ###################################################### # Compile extension # ###################################################### # Export variables needed for compilation export CFLAGS="-Os -pipe" export CXXFLAGS="-Os -pipe -fno-exceptions -fno-rtti" export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig # Unpack source in current directory tar -xf $SRCNAM # Configure it cd $WRKDIR ./configure --prefix=/usr --enable-elf-shlibs # Compile make # Install in base temp dir make install make install-libs # Move files to tmp for packaging mkdir -p $TMPDIR-dev/usr/include mv /usr/include/e2p $TMPDIR-dev/usr/include mv /usr/include/et $TMPDIR-dev/usr/include mv /usr/include/ext2fs $TMPDIR-dev/usr/include mv /usr/include/com_err.h $TMPDIR-dev/usr/include mkdir -p $TMPDIR-dev/usr/lib/pkgconfig mv /usr/lib/pkgconfig/com_err.pc $TMPDIR-dev/usr/lib/pkgconfig mv /usr/lib/pkgconfig/e2p.pc $TMPDIR-dev/usr/lib/pkgconfig mv /usr/lib/pkgconfig/ext2fs.pc $TMPDIR-dev/usr/lib/pkgconfig mv /usr/lib/libcom_err.a $TMPDIR-dev/usr/lib mv /usr/lib/libe2p.a $TMPDIR-dev/usr/lib mv /usr/lib/libext2fs.a $TMPDIR-dev/usr/lib mkdir -p $TMPDIR-dev/usr/share mv /usr/share/et $TMPDIR-dev/usr/share