summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ef1b974966362e2f4a78956bb6dd36c47a7dbea6 (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
# Maintainer: Geballin - Guillaume Ballin <macniaque at free dot fr>
# Contributor: Alex Whitt <alex.joseph.whitt@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=emacs-bash-completion
pkgver=3.1.1
pkgrel=1
pkgdesc="Add programmable bash completion to Emac's shell-mode"
url="https://github.com/szermatt/emacs-bash-completion"
arch=('any')
license=('GPL2')
depends=('emacs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/szermatt/emacs-bash-completion/archive/v${pkgver}.tar.gz")
sha256sums=('20849ae2267ac1dd7a88bafc29c085e1e455735ea6db75eb0f1ffc99b421a5ed')

build() {
  cd $pkgname-$pkgver
  emacs -Q -batch -L . -f batch-byte-compile bash-completion.el
}

package() {
  cd $pkgname-$pkgver
  install -d "${pkgdir}"/usr/share/emacs/site-lisp/bash-completion
  install -m644 bash-completion.el{c,} "${pkgdir}"/usr/share/emacs/site-lisp/bash-completion/
}