blob: aa5e71c897973d47602c57afa6288cb5f1699924 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Jose Riha <jose1711 gmail com>
pkgname=gpx2png-git
_pkgname=gpx2png
pkgver=r16.cca8b29
pkgrel=2
pkgdesc="Perl script that turns GPX file(s) into image with a background map"
arch=('any')
url="https://wiki.openstreetmap.org/wiki/Gpx2png"
license=('GPL3')
depends=('perl-libwww' 'imagemagick')
makedepends=('git')
conflicts=('gpx2png')
source=("${_pkgname}"::'git+https://github.com/joubu/gpx2png.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${_pkgname}"
sed -i '1i\
#!/usr/bin/env perl' gpx2png.pl
}
package() {
cd "$srcdir/${_pkgname}"
install -Dm755 gpx2png.pl "${pkgdir}/usr/bin/gpx2png.pl"
}
|