summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb21d15b2e2a61323fe8ff5fdf047721f8a02ac5 (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
# Maintainer: Alex Whitt <alex.joseph.whitt@gmail.com>

pkgname=emacs-golden-ratio
pkgver=1.0
pkgrel=1
pkgdesc="Automatic resizing of Emacs windows to the golden ratio"
url="https://github.com/roman/golden-ratio.el"
arch=('any')
license=('MIT')
depends=('emacs')
makedepends=('git')
provides=('emacs-golden-ratio')
source=("https://github.com/roman/golden-ratio.el/archive/v${pkgver}.tar.gz")
sha256sums=('SKIP')

build() {
  cd "${srcdir}/golden-ratio.el-${pkgver}"
  emacs -Q -batch -L . -f batch-byte-compile *.el
}

package() {
  cd "${srcdir}/golden-ratio.el-${pkgver}"
  install -d "${pkgdir}/usr/share/emacs/site-lisp/golden-ratio"
  install -m644 *.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/golden-ratio/"

  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}