cruxports/gl2ps/Pkgfile

26 lines
714 B
Plaintext

# Description: OpenGL to Postscript printing library
# URL: https://geuz.org/gl2ps/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: libglvnd texlive
name=gl2ps
version=1.4.2
release=1
source=(https://geuz.org/$name/src/$name-$version.tgz)
build() {
cd $name-$version
export FORCE_SOURCE_DATE=1 # make pdftex adhere to SOURCE_DATE_EPOCH
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_EXE_LINKER_FLAGS=-lm ..
make -j ${JOBS:-1}
make DESTDIR=$PKG install
rm -f $PKG/usr/share/doc/gl2ps/{README,COPYING}*
}