summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb3c9aac1ade5e26b1f9255f071440917157ea25 (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
# Maintainer: Mort Yao <soi@mort.ninja>

pkgname=emacs-less-css-mode-git
pkgver=20150609
pkgrel=1
pkgdesc="Major mode for LESS CSS (lesscss.org), with support for compile-on-save."
arch=('any')
url="https://github.com/purcell/less-css-mode"
license=('GPL3')
depends=('emacs')
makedepends=('git')
provides=('emacs-less-css-mode')
replaces=('emacs-less-css-mode')
install=$pkgname.install

_gitroot="https://github.com/purcell/less-css-mode"
_gitname="less-css-mode"
build() {
  cd $startdir/src
  msg "Connecting to github.com GIT server...."

  if [ -d $startdir/src/$_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
  else
    git clone $_gitroot
  fi

  msg "GIT checkout done or server timeout"
}

package() {
  cd $startdir/src/$_gitname

  mkdir -p $pkgdir/usr/share/emacs/site-lisp/less-css-mode
  install -Dm644 less-css-mode.el $pkgdir/usr/share/emacs/site-lisp/less-css-mode
}