cruxports/gl2ps/Pkgfile

26 lines
714 B
Plaintext
Raw Normal View History

2022-02-05 15:39:19 -05:00
# Description: OpenGL to Postscript printing library
# URL: https://geuz.org/gl2ps/
# Maintainer: John McQuah, jmcquah at disroot dot org
2022-04-26 07:51:12 -04:00
# Depends on: libglvnd texlive
2022-02-05 15:39:19 -05:00
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
2022-12-23 12:44:15 -05:00
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}
2022-02-05 15:39:19 -05:00
make DESTDIR=$PKG install
2022-02-12 09:46:46 -05:00
rm -f $PKG/usr/share/doc/gl2ps/{README,COPYING}*
2022-02-05 15:39:19 -05:00
}