cruxports/gl2ps/Pkgfile

24 lines
609 B
Plaintext

# Description: OpenGL to Postscript printing library
# URL: https://geuz.org/gl2ps/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: libglvnd libpng 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_EXE_LINKER_FLAGS=-lm
make
make DESTDIR=$PKG install
rm -f $PKG/usr/share/doc/gl2ps/{README,COPYING}*
}