Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Tilemill Arch PKGBUILD

By: a guest on Apr 24th, 2013  |  syntax: Bash  |  size: 1.66 KB  |  views: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Nick Ƙstergaard <oe.nick at gmail dot com>
  2. pkgname=tilemill
  3. pkgver=0.10.1
  4. pkgrel=1
  5. pkgdesc="A modern map design studio"
  6. arch=(any)
  7. url="https://github.com/mapbox/tilemill"
  8. license=(BSD)
  9. depends=(boost nodejs6 mapnik desktop-file-utils webkitgtk2)
  10. source=(tilemill.png \
  11.         tilemill.desktop \
  12.         tilemill.install)
  13. noextract=($pkgname-$pkgver.tgz)
  14. sha1sums=('350bbce4e2a3a338123e919f050c418d317a7862'
  15.           '9aced645fcc1407e7a0cb864a48501e3048a4c37'
  16.           'f011df5ca2f0597ddd51c4d5f1b365caa0c7c847')
  17.  
  18. _gitroot="https://github.com/mapbox/tilemill.git"
  19. _gitname="tilemill"
  20.  
  21. build() {
  22.   # nodejs python3 incompatibility hax
  23.   msg "NodeJS HAX"
  24.   mkdir -p $srcdir/bin
  25.   ln -s -f /usr/bin/python2 $srcdir/bin/python
  26.   export PATH=$srcdir/bin:$PATH
  27.   python --version
  28. }
  29.  
  30. package() {
  31.  
  32.   msg "Connecting to the $_gitname git repository..."
  33.   if [ -d "$srcdir/$_gitname" ] ; then
  34.     cd $_gitname && git pull origin
  35.     msg "The local files are updated."
  36.   else
  37.     git clone $_gitroot
  38.   fi
  39.   msg "GIT checkout done or server timeout"
  40.   cd "$srcdir"
  41.   rm -rf $_gitname-build
  42.   git clone $_gitname $_gitname-build
  43.   cd "$_gitname-build"
  44.  
  45.   local _npmdir="$pkgdir/usr/lib/node_modules/"
  46.   mkdir -p $_npmdir
  47.   cd $_npmdir
  48.   npm install -g --prefix "$pkgdir/usr" $pkgname@$pkgver
  49.  
  50.   # icon and .desktop files
  51.   #install -Dm644 $srcdir/tilemill.png "$pkgdir/usr/share/pixmaps/tilemill.png"
  52.   ###install -Dm644 $srcdir/tilemill.desktop "$pkgdir/usr/share/applications/tilemill.desktop"
  53.   #install -Dm644 $pkgdir/usr/lib/node_modules/tilemill/LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  54. }
  55. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data