You are not logged in.

#1 2017-05-09 09:19:34

marzdgzmn
Member
Registered: 2017-05-09
Posts: 1

[REQUEST] mpage

pkgname=mpage
pkgver=2.5.6
pkgrel=1
pkgdesc="print multiple pages per sheet on PostScript printer"
arch=()
url="http://www.mesa.nl/pub/mpage/"
license=('GPL')
groups=()
depends=()
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=($pkgname-$pkgver.tar.gz)
noextract=()

Here's the link for the ubuntu package: http://manpages.ubuntu.com/manpages/pre … age.1.html

Offline

#2 2017-05-09 11:33:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,447
Website

Re: [REQUEST] mpage

First, the upstream tarball is misnamed.  I strugged to extract it as gzip and tar both complained about the format not being gzipped.  Apparently it's a plain uncompressed tar file with a false gz extension.

It will build with just a single "make PREFIX=/usr" command but the install will fail as their Makefile does not use DESTDIR or anything like it.  I suspect the Makefile would need a small patch - or you chould just do the installs manually in the PKGBUILD (that's what I'd do):

...

build() {
   cd $pkgname-$pkgver
   make PREFIX=/usr
}

package() {
   cd $pkgname-$pkgver
   install -Dm0644 mpage /usr/lib/mpage
   install -Dm0644 mpage.1 /usr/share/man/man1/mpage.1
   install -Dm0644 -t /usr/bin/mpage/ Encodings/
}

But really you may just want to try `pdfnup` from [extra]/texlive-core or or [extra]/ghostscript (e.g. pdf2ps -> psnup -> ps2pdf)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB