summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e7449a9e2f5a416b782e8a4b7604b3ae61944110 (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
32
33
34
35
36
37
38
39
40
# Maintainer: Hauke Stieler <mail@hauke-stieler.de>

pkgname=maputnik-cli
pkgver=1.7.0
pkgrel=1
pkgdesc="Maputnik-CLI for local development of Mapbox styles."
arch=('any')
url="https://github.com/maputnik/desktop"
license=('MIT')
depends=()
makedepends=('go>=1.19')
backup=()
conflicts=()
provides=('maputnik-cli=${pkgver}')

# Desktop-Repo and Editor-Repo have different versions. This builds version $pkgver.
_desktopver=1.0.7

# Currently the latest tag has no go-module. TODO use tag-specifier with next desktop release: #tag=v${_desktopver}")
source=("git+https://github.com/maputnik/desktop")
sha256sums=('SKIP')

build() {
  cd ${srcdir}

  # Make go work
  export GOPATH="$srcdir"/gopath
  export GOBIN="$GOPATH"/bin

  # Go into repo folder
  cd "desktop"
  
  # Build CLI tool. The actual editor (a web application) will be loaded automatically.
  make
}

package() {
  cd "${srcdir}/desktop"
  install -Dm755 bin/linux/maputnik "${pkgdir}"/usr/bin/maputnik
}