#!/bin/sh [ -z $PREPKG ] && exit 1 PACKAGE=subversion VERSION=1.4.4 FILES=$(cd $(dirname $0) ; pwd) mkdir -p $PREPKG/{install,usr/doc/$PACKAGE-$VERSION}/ # the book (do it now so there's only 1 set of chmod/chown) tar jxf $FILES/svn-book-html.tar.bz2 || exit 1 mv svn-book-html/ book/ # permission fixes. they appear to change with almost every release. yay? find . -type d -exec chmod g-sw,o+rx {} \; -o -type f -exec chmod g-w,o+r {} \; chown -R root:root . CFLAGS="-O2 -march=i486 -mcpu=i686" \ ./configure \ --prefix=/usr \ --disable-static \ --enable-shared \ --with-apr=/usr \ --with-apr-util=/usr \ --with-neon=/usr \ --with-pic \ --with-ssl \ --with-zlib \ i486-slackware-linux &> configure.output || exit 1 make $MAKEJOBS &> make.output || exit 1 make DESTDIR=$PREPKG install &> make_install.output || exit 1 chown -R root:bin $PREPKG/usr/bin/ cp -a book/ doc/ BUGS CHANGES COMMITTERS \ COPYING HACKING INSTALL README TRANSLATING \ $PREPKG/usr/doc/$PACKAGE-$VERSION/ gzip -r9 $PREPKG/usr/man/ # tidy up rm -rf $PREPKG/usr/doc/$PACKAGE-$VERSION/doc/tools/ cat << EOF > $PREPKG/install/doinst.sh #!/bin/sh EOF cp $FILES/slack-desc $PREPKG/install/ find $PREPKG -exec file {} \; \ | awk -F : '/ ELF / {print $1}' \ | xargs strip -p --strip-unneeded