Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 72 lines (51 sloc) 2.1 KB
#! /bin/sh
# https://github.com/fontforge
# https://github.com/fontforge/fontforge/archive/20200314.tar.gz
# https://github.com/fontforge/libspiro/archive/20200505.tar.gz
# https://github.com/fontforge/libuninameslist/archive/20200413.tar.gz
set -xe
PKG=fontforge
VERSION=20200314
LIBSPIROVERSION=20200505
LIBUNINAMESLISTVERSION=20200413
BUILD=0
PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
. /pkg/python-3.7.7-0/profile
PATH=$PREFIX/bin:\$PATH
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig\${PKG_CONFIG_PATH:+:}\$PKG_CONFIG_PATH
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH ; fi
EOF
source $PREFIX/profile
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
mkdir -p $PREFIX/build
cd $PREFIX/build
NPROC=$(( $(nproc) * 4 / 5 + 1 ))
test -e libspiro-$LIBSPIROVERSION.tar.gz || wget --no-verbose https://github.com/fontforge/libspiro/archive/$LIBSPIROVERSION/libspiro-$LIBSPIROVERSION.tar.gz
test -d libspiro-$LIBSPIROVERSION || tar -xf libspiro-$LIBSPIROVERSION.tar.gz
cd libspiro-$LIBSPIROVERSION
autoreconf -i; automake --foreign -Wall
./configure --prefix=$PREFIX
make -j $NPROC; make install
cd ..
test -e libuninameslist-$LIBUNINAMESLISTVERSION.tar.gz || wget --no-verbose https://github.com/fontforge/libuninameslist/archive/$LIBUNINAMESLISTVERSION/libuninameslist-$LIBUNINAMESLISTVERSION.tar.gz
test -d libuninameslist-$LIBUNINAMESLISTVERSION || tar -xf libuninameslist-$LIBUNINAMESLISTVERSION.tar.gz
cd libuninameslist-$LIBUNINAMESLISTVERSION
autoreconf -i; automake
./configure --prefix=$PREFIX
make; make install
cd ..
test -e fontforge-$VERSION.tar.gz || wget --no-verbose https://github.com/fontforge/fontforge/archive/$VERSION/fontforge-$VERSION.tar.gz
test -d fontforge-$VERSION || tar -xf fontforge-$VERSION.tar.gz
cd fontforge-$VERSION
mkdir -p build; cd build
cmake \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DENABLE_FONTFORGE_EXTRAS=ON \
..
make -j $NPROC; make install
cd ../..
exit