summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8cbb4a46f56a741e54c35602cfde4bbf3b1abfe (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
# Contributor: Jamie Beardslee, Stefan Husmann <stefan-husmann@t-online.de>
# Maintainer: Mingde (Matthew) Zeng <matthewzmd@posteo.net>

pkgname=emacs-application-framework-git
pkgver=r2509.962a3b98
pkgrel=1
pkgdesc="A free/libre and open-source extensible framework that revolutionizes the graphical capabilities of Emacs, the key to ultimately Live in Emacs"
arch=('any')
url="https://github.com/emacs-eaf/emacs-application-framework"
license=('GPL3')
makedepends=('git' 'python-pip')
depends=('python' 'nodejs' 'npm')
provides=('emacs-eaf')
conflicts=('emacs-eaf')
source=("git+https://github.com/emacs-eaf/emacs-application-framework")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${pkgname%-git}"
  install -d "$pkgdir"/usr/share/emacs/site-lisp/eaf/
  for _i in LICENSE core *.el *.py *.json *.md
  do
    cp -r ${_i} "$pkgdir"/usr/share/emacs/site-lisp/eaf/
  done
  install -Dm644 README.md "$pkgdir"/usr/share/doc/emacs-application-framework-git/README.md
  install -Dm644 README.zh-CN.md "$pkgdir"/usr/share/doc/emacs-application-framework-git/README.zh-CN.md

  cd "$pkgdir"/usr/share/emacs/site-lisp/eaf && python ./install-eaf.py

  echo "Installation complete, please add $pkgdir/usr/share/emacs/site-lisp/eaf/ to your load-path."
}