Posted by onny on Fri 24th May 00:13
download | new post | report as spam

  1. # Contributor: Jonas Heinrich <onny@project-insanity.org>                                                                      # Maintainer: Nick Østergaard <oe.nick at gmail dot com>
  2. pkgname=tilemill
  3. pkgver=0.10.1
  4. pkgrel=4
  5. pkgdesc="A modern map design studio"
  6. arch=(any)
  7. url="https://github.com/mapbox/tilemill"
  8. license=(BSD)
  9. depends=(nodejs8 nodejs8-srs mapnik desktop-file-utils webkitgtk2)
  10. source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz \
  11.         tilemill.png \
  12.         tilemill.desktop \
  13.         tilemill.install)
  14. noextract=($pkgname-$pkgver.tgz)
  15. sha1sums=('9921329450c10fbaf05dcc022a23caed4f645de5'
  16.           '350bbce4e2a3a338123e919f050c418d317a7862'
  17.           '9aced645fcc1407e7a0cb864a48501e3048a4c37'
  18.           'f011df5ca2f0597ddd51c4d5f1b365caa0c7c847')
  19.  
  20. build() {
  21.   cd $srcdir
  22.   tar xf $pkgname-$pkgver.tgz
  23. }
  24. package() {
  25.   cd $srcdir/package
  26.  
  27.   mkdir -p "$pkgdir/usr"
  28.   npm install -d -g --prefix "$pkgdir/usr"
  29.  
  30.   cd $pkgdir/usr/lib/node_modules/tilemill/node_modules/tilelive-mapnik
  31.   npm install eio@0.2.0
  32.  
  33.   # icon and .desktop files
  34.   install -Dm644 $srcdir/tilemill.png "$pkgdir/usr/share/pixmaps/tilemill.png"
  35.   install -Dm644 $srcdir/tilemill.desktop "$pkgdir/usr/share/applications/tilemill.desktop"
  36.   install -Dm644 $pkgdir/usr/lib/node_modules/tilemill/LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  37. }
  38. # vim:set ts=2 sw=2 et:

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily
.
Syntax highlighting:

To highlight particular lines, prefix each line with @@
   Remember me