Package Details: orp-svn r31608-1

Git Clone URL: https://aur.archlinux.org/orp-svn.git (read-only, click to copy)
Package Base: orp-svn
Description: Osmarender in Perl - a complete re-implemenation of Osmarender in Perl
Upstream URL: http://wiki.openstreetmap.org/wiki/Osmarender/orp
Licenses: GPL
Submitter: jose1711
Maintainer: jose1711
Last Packager: jose1711
Votes: 3
Popularity: 0.000000
First Submitted: 2009-02-18 20:03 (UTC)
Last Updated: 2015-10-09 14:46 (UTC)

Latest Comments

dreieck commented on 2024-02-14 11:44 (UTC)

↗ Fixed PKGBUILD together with a ↗ start script to be put into /usr/bin/:

#!/bin/sh

perl /usr/share/orp/orp/orp.pl "$@"
# Maintainer:  jose1711 <jose1711@gmail.com> (https://aur.archlinux.org/account/jose1711)
# Contributor: dreieck (https://aur.archlinux.org/account/dreieck)

pkgname=orp-svn
_pkgver=r31608+archived
pkgver="${_pkgver}"
pkgrel=1
pkgdesc="or/p, Osmarender in Perl - a complete re-implemenation of Osmarender in Perl."
arch=('any')
depends=(
  'libxml-perl'
  'perl'
  'perl-set-object'
  'perl-xml-libxml'
  'perl-xml-writer'
  'perl-xml-xpath'
  'sh'
)
makedepends=('cloneit')
provides=('orp')
conflicts=('orp')
replaces=()
url="http://wiki.openstreetmap.org/wiki/Osmarender/orp"
license=('GPL')
VCSCLIENTS+=(
  'cloneit::cloneit'
  'cloneit-z::cloneit'
)
DLAGENTS+=(
  'cloneit::/usr/bin/cloneit %u %o'
  'cloneit-z::/usr/bin/cloneit -z %u %o'
)
source=(
  "orp::cloneit+https://github.com/openstreetmap/svn-archive/raw/main/applications/rendering/osmarender/orp"
  "stylesheets::cloneit+https://github.com/openstreetmap/svn-archive/raw/main/applications/rendering/osmarender/stylesheets"
  # "orp.zip::cloneit-z+https://github.com/openstreetmap/svn-archive/raw/main/applications/rendering/osmarender/orp"
  # "stylesheets.zip::cloneit-z+https://github.com/openstreetmap/svn-archive/raw/main/applications/rendering/osmarender/stylesheets"
  'orp.sh'
  'orp.pl.patch'
)
noextract=()
sha256sums=(
  'SKIP'
  'SKIP'
  'd7f6ec0624eb817f6e73df62e7bc90bfc6bbe8e25d94a74011fb47072812182f'
  'b70339f20acb2705846205b486f1a4c5e76ae51d44ee79d362997a602a8639fe'
)

### Note: With the custom DLAGENT, `makepkg` shows the following error message:
#   ```
#   ==> Extracting sources...
#   rm: cannot remove '/tmp/makepkg/build/orp-svn/src/orp': Is a directory
#   ln: failed to create symbolic link '/tmp/makepkg/build/orp-svn/src/' -> '': No such file or directory
#   ln: failed to create symbolic link '/tmp/makepkg/build/orp-svn/src/' -> '': No such file or directory
#   ```
#   But the rest of the `PKGBUILD` manually works around this to make it work nevertheless.

prepare() {
  cd "${srcdir}"

  ## Workaround issues related to custom VCSCLIENT DLAGENT:
  if [ -e "${SRCDEST}/orp/orp.part" ]; then
    rm -rf "${SRCDEST}/orp/orp.part"
  fi
  if [ -e "${SRCDEST}/stylesheets/stylesheets.part" ]; then
    rm -rf "${SRCDEST}/stylesheets/stylesheets.part"
  fi
  if [ -e orp ]; then
    rm -rf orp
  fi
  cp -a "${SRCDEST}/orp" .
  if [ -e stylesheets ]; then
    rm -rf stylesheets
  fi
  cp -a "${SRCDEST}/stylesheets" .

  cd "${srcdir}/orp"

  for _patch in "${srcdir}/orp.pl.patch"; do
    printf "    > Applying patch '$(basename "${_patch}")' ..."
    patch -p0 < "${_patch}"
  done
}

# pkgver() {
#   cd "${srcdir}/orp"
#   local ver="$(svnversion)"
#   printf "r%s" "${ver//[[:alpha:]]}"
# }

package() {
  cd "${srcdir}/orp"

  install -dvm755    "${pkgdir}/usr/share/orp/orp"
  install -Dvm644 -t "${pkgdir}/usr/share/orp/orp"  *.pm *.pl *.svg
  chmod   a+x        "${pkgdir}/usr/share/orp/orp/orp.pl"

  install -Dvm644 -t "${pkgdir}/usr/share/doc/orp"  README

  cd "${srcdir}/stylesheets"
  install -dvm755    "${pkgdir}/usr/share/orp/stylesheets"
  install -Dvm644 -t "${pkgdir}/usr/share/orp/stylesheets"  *.xml *.osm *.tmpl *.tcl
  install -dvm755    "${pkgdir}/usr/share/orp/stylesheets/symbols"
  install -Dvm644 -t "${pkgdir}/usr/share/orp/stylesheets/symbols"  symbols/*

  cd "${srcdir}"
  install -Dvm755    "${srcdir}/orp.sh" "${pkgdir}/usr/bin/orp"
}

Regards and thanks for maintaining!

dreieck commented on 2024-02-14 10:34 (UTC)

This package has no binaries. So it must have arch=('any').
Regards and thanks for maintaining!

dreieck commented on 2024-02-14 10:33 (UTC)

Please add provides=("orp") and conflicts=("orp").
Regards and thanks for maintaining!

dreieck commented on 2024-02-14 10:00 (UTC)

Fails to download:

==> Retrieving sources...
  -> Cloning orp svn repo...
Redirecting to URL 'https://svn.openstreetmap.org/applications/rendering/osmarender/orp':
Redirecting to URL 'https://github.com/openstreetmap/svn-archive/tree/main/applications/rendering/osmarender':
svn: E170013: Unable to connect to a repository at URL 'https://github.com/openstreetmap/svn-archive/tree/main/applications/rendering/osmarender'
svn: E160013: '/openstreetmap/svn-archive/tree/main/applications/rendering/osmarender' path not found
==> ERROR: Failure while downloading orp svn repo

Source is now at
https://github.com/openstreetmap/svn-archive/tree/main/applications/rendering/osmarender.

Also, you need to add subversion (or, if the new source is fetched via GIT, then git) to the makedepends array.

Regards and thanks for maintaining!

jose1711 commented on 2011-11-19 21:16 (UTC)

now includes stylesheets

jose1711 commented on 2010-05-18 05:44 (UTC)

thank you for your report, i've added it into dependencies

<deleted-account> commented on 2010-05-17 23:21 (UTC)

That fixed it. I figured it was something trivial like that, thanks.

jose1711 commented on 2010-05-17 19:23 (UTC)

is there libxml-perl installed on your system?

<deleted-account> commented on 2010-05-17 06:24 (UTC)

Can't locate XML/Parser/PerlSAX.pm in @INC (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/current /usr/lib/perl5/site_perl/current .) at ./orp.pl line 111. BEGIN failed--compilation aborted at ./orp.pl line 111. Is there a missing dependency? Or is there something wrong with the "path"? or...?