Skip to content

Commit

Permalink
git-cola: Build recent version (3.7)
Browse files Browse the repository at this point in the history
thomas committed May 28, 2020
1 parent 50a35f3 commit 381dcb7
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions git-cola-3.7-0.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#! /bin/bash

PKG=git-cola
VERSION=3.7
BUILD=0

SRC=https://github.com/git-cola/git-cola/archive/v$VERSION.tar.gz
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

BUILDDIR=$PREFIX/build

mkdir -p $BUILDDIR
cd $BUILDDIR

test -e v$VERSION.tar.gz || wget $SRC
test -d git-cola-$VERSION || tar xvf v$VERSION.tar.gz

cd git-cola-$VERSION
python3 setup.py build
python3 setup.py install --prefix=$PREFIX

exit

0 comments on commit 381dcb7

Please sign in to comment.