Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
pkg-scripts/claws-mail-3.17.4-0.build.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
63 lines (47 sloc)
1.53 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
PKG=claws-mail | |
VERSION=3.17.4 | |
BUILD=0 | |
PREFIX=/pkg/$PKG-$VERSION-$BUILD | |
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi | |
set -xe | |
umask 022 | |
BUILD_TMPDIR=/dev/shm/$PKG-$VERSION-$BUILD.build.tmp | |
test -d $BUILD_TMPDIR && ( chmod -R u+rwx $BUILD_TMPDIR || true ; rm -rf $BUILD_TMPDIR ) | |
mkdir -p $BUILD_TMPDIR/home | |
export TMPDIR=$BUILD_TMPDIR | |
export HOME=$BUILD_TMPDIR/home | |
exec </dev/null | |
mkdir -p $PREFIX | |
cat >$PREFIX/profile <<-EOF | |
PATH=$PREFIX/bin:\$PATH | |
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi | |
EOF | |
. $PREFIX/profile | |
export MAKEFLAGS="-j $(nproc)" | |
BUILDDIR=$PREFIX/build | |
mkdir -p $BUILDDIR | |
cd $BUILDDIR | |
( | |
# https://github.com/dinhviethoa/libetpan/archive/1.9.3.tar.gz | |
# https://deb.debian.org/debian/pool/main/libe/libetpan/libetpan_1.9.3.orig.tar.xz | |
EPVERSION=1.9.3 | |
test -e libetpan_$EPVERSION.orig.tar.xz || wget --no-verbose https://deb.debian.org/debian/pool/main/libe/libetpan/libetpan_$EPVERSION.orig.tar.xz | |
test -d libetpan-$EPVERSION || tar xf libetpan_$EPVERSION.orig.tar.xz | |
cd libetpan-$EPVERSION | |
# NOCONFIGURE=1 ./autogen.sh # for the git version | |
./configure \ | |
--prefix=$PREFIX | |
make | |
make install | |
) | |
( | |
test -e claws-mail-$VERSION.tar.xz || wget --no-verbose https://www.claws-mail.org/releases/claws-mail-$VERSION.tar.xz | |
test -d claws-mail-$VERSION || tar xf claws-mail-$VERSION.tar.xz | |
cd claws-mail-$VERSION | |
./configure \ | |
--prefix=$PREFIX | |
make | |
make install | |
) | |
exit |