Package Details: gl2ps-svn 1.3.9.20160707-1

Git Clone URL: https://aur.archlinux.org/gl2ps-svn.git (read-only)
Package Base: gl2ps-svn
Description: OpenGL to PostScript printing library
Upstream URL: http://www.geuz.org/gl2ps
Licenses: LGPL
Conflicts: gl2ps
Provides: gl2ps
Submitter: pmattern
Maintainer: pmattern
Last Packager: pmattern
Votes: 1
Popularity: 0.000013
First Submitted: 2016-07-07 16:30
Last Updated: 2016-07-07 17:53

Required by (22)

Sources (1)

Latest Comments

Salamandar commented on 2018-02-19 18:48

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='http://www.geuz.org/gl2ps' license=('LGPL') depends=('libgl' 'libpng') makedepends=('subversion' 'cmake' 'glut' 'glu' 'texlive-core') provides=("$_pkgname") conflicts=("$_pkgname") source=("http://geuz.org/$_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 }