Package Details: gpx2svg-git 0.2.0+2.r33.20221223.fad0f1b-1

Git Clone URL: https://aur.archlinux.org/gpx2svg-git.git (read-only, click to copy)
Package Base: gpx2svg-git
Description: Python script to convert GPX data to SVG
Upstream URL: https://nasauber.de/opensource/gpx2svg/
Licenses: GPL3, Custom: CC-BY-SA-4.0, custom: CC0-1.0
Conflicts: gpx2svg
Provides: gpx2svg
Submitter: jose1711
Maintainer: jose1711
Last Packager: jose1711
Votes: 1
Popularity: 0.000000
First Submitted: 2018-06-24 21:43 (UTC)
Last Updated: 2023-05-05 12:24 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

dreieck commented on 2023-05-04 12:47 (UTC)

Source cannot be downloaded:

  -> Cloning gpx2svg git repo...
Cloning into bare repository '/tmp/makepkg/sources/gpx2svg'...
fatal: unable to look up git.l3u.de (port 9418) (Name or service not known)

The host git.l3u.de cannot be found.

Upstream says, that the new location for this software is at https://gitlab.com/l3u/gpx2svg.

Please update your source array.

Also, please add gpx2svg to the provides array.

Official version number is available via git describe --tags. Please parse it and add it at the beginning of $pkgver. Then, you can also add =${pkgver} to the provides entry.

A PKGBUILD with those fixes and some other changes is here:

# Maintainer: Jose Riha <jose1711 gmail com>

pkgname=gpx2svg-git
_pkgname=gpx2svg
pkgver=0.2.0+2.r33.20221223.fad0f1b
pkgrel=1
pkgdesc="Python script to convert GPX data to SVG"
arch=('any')
url="https://nasauber.de/opensource/gpx2svg/"
license=(
  'GPL3'
  'custom: CC0-1.0'
  'custom: CC-BY-SA-4.0'
)
depends=('python')
provides=("gpx2svg=${pkgver}")
conflicts=('gpx2svg')
source=("${_pkgname}::git+https://gitlab.com/l3u/gpx2svg.git")
sha256sums=('SKIP')

prepare() {
  cd "${srcdir}/${_pkgname}"

  git log > "${srcdir}/git.log"
}

pkgver() {
  cd "${srcdir}/${_pkgname}"
  _ver="$(git describe --tags | sed -E -e 's|^[vV]||' -e 's|-g[0-9a-f]*$||' -e 's|-|+|g')"
  _rev="$(git rev-list --count HEAD)"
  _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
  _hash="$(git rev-parse --short HEAD)"

  if [ -z "${_ver}" ]; then
    error "Version could not be determined."
    return 1
  else
    printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
  fi
}


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

  install -D -v -m755 "gpx2svg" "${pkgdir}/usr/bin/gpx2svg"

  for _docfile in "${srcdir}/git.log" ChangeLog.rst README.md; do
    install -D -v -m644 "${_docfile}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docfile}")"
  done

  for _licensefile in README.md.license LICENSES/*; do
    install -D -v -m644 "${_licensefile}" "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")"
    ln -svr "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_licensefile}")"
  done
}

Thanks for maintaining!