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

_pkgname=emacs-emmet-mode
pkgname=$_pkgname-git
pkgver=20240617
pkgrel=1
pkgdesc="Minor mode providing support for Zen Coding, with Emmet's feature expansion."
arch=('any')
url="https://github.com/smihica/emmet-mode"
license=('GPL3')
depends=('emacs')
makedepends=('git')
provides=('emacs-emmet-mode')
replaces=('emacs-emmet-mode')
install=$pkgname.install
source=("${_pkgname}::git+https://github.com/smihica/emmet-mode.git")
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git log -1 --pretty=format:%cd --date=short | sed 's/-//g'
}

build() {
  cd "$_pkgname"
  make all
}

package() {
  cd "$_pkgname"
  mkdir -p $pkgdir/usr/share/emacs/site-lisp/emmet-mode
  install -Dm644 emmet-mode.el emmet-mode.elc $pkgdir/usr/share/emacs/site-lisp/emmet-mode
}