Skip to content

Commit

Permalink
meme: add version 5.1.1
Browse files Browse the repository at this point in the history
With a little luck this will replace old /package/meme.
  • Loading branch information
thomas committed May 8, 2020
1 parent fbf9d9e commit 50a35f3
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions meme-5.1.1-0.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#! /bin/bash

PKG=meme
VERSION=5.1.1
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:$PREFIX/libexec/meme-$VERSION:\$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

# http://meme-suite.org/doc/download.html, http://meme-suite.org/meme-software/5.1.1/meme-5.1.1.tar.gz
test -e meme-$VERSION.tar.gz || wget http://meme-suite.org/meme-software/5.1.1/meme-$VERSION.tar.gz
test -d meme-$VERSION || tar -xf meme-$VERSION.tar.gz

cd meme-$VERSION
./configure \
--prefix=$PREFIX \
--with-url=http://meme-suite.org/

make
make test
make install

exit

0 comments on commit 50a35f3

Please sign in to comment.