Package Details: gl2ps-svn

Git Clone URL: (read-only, click to copy)
Package Base: gl2ps-svn
Description: OpenGL to PostScript printing library
Upstream URL:
Licenses: LGPL
Conflicts: gl2ps
Provides: gl2ps
Submitter: pmattern
Maintainer: pmattern
Last Packager: pmattern
Votes: 1
Popularity: 0.000000
First Submitted: 2016-07-07 16:30 (UTC)
Last Updated: 2016-07-07 17:53 (UTC)

Dependencies (7)

Required by (21)

Sources (1)

Latest Comments

Salamandar commented on 2018-02-19 18:48 (UTC)

The package was ported to git. Here is a working PKGBUILD:

Maintainer: Peter Mattern <pmattern arcor="" at="" de="" dot=""></pmattern>

_pkgname=gl2ps pkgname=$_pkgname-svn pkgver=1.4.0 pkgrel=1 pkgdesc='OpenGL to PostScript printing library' arch=('i686' 'x86_64') url='' license=('LGPL') depends=('libgl' 'libpng') makedepends=('subversion' 'cmake' 'glut' 'glu' 'texlive-core') provides=("$_pkgname") conflicts=("$_pkgname") source=("$_pkgname/src/$_pkgname-git.tgz") sha256sums=("SKIP")

pkgver() { cd $srcdir/$_pkgname-git local major=$(cat CMakeLists.txt | grep 'set(GL2PS_MAJOR_VERSION' | awk '{print $2}' | sed 's/)//') local minor=$(cat CMakeLists.txt | grep 'set(GL2PS_MINOR_VERSION' | awk '{print $2}' | sed 's/)//') local patch=$(cat CMakeLists.txt | grep 'set(GL2PS_PATCH_VERSION' | awk '{print $2}' | sed 's/)//') echo $major.$minor.$patch # ls $srcdir | grep source | sed 's:^gl2ps.::;s:-svn-:.:;s:-source$::' }

build() { rm -Rf build && mkdir build && cd build cmake $srcdir/$_pkgname-git -DCMAKE_INSTALL_PREFIX=/usr make }

package() { cd build make DESTDIR=$pkgdir install }