summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f47fa53fbb15e7f1623ceb4325af885d1efa56da (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
# Contributor: Kyle Sexton <ks@mocker.org>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=emacs-pkgbuild-mode-git
pkgver=0.14.1.r8.gd237beb
pkgrel=1
pkgdesc="A major mode for creating packages with emacs"
arch=('any')
url="https://github.com/stefanhusmann/pkgbuild-mode"
license=('GPL')
depends=('emacs') 
makedepends=('git')
provides=('emacs-pkgbuild-mode')
conflicts=('emacs-pkgbuild-mode')
install=emacs-pkgbuild-mode.install
source=('git+https://github.com/stefanhusmann/pkgbuild-mode.git')
md5sums=('SKIP')
_gitname="pkgbuild-mode"

pkgver() {
  cd $_gitname
  git describe --tags | sed s+-+.r+ | tr - .
}

build() {
  cd $_gitname
  emacs -batch -f batch-byte-compile pkgbuild-mode.el 
}

package() {
  install -d $pkgdir/usr/share/emacs/site-lisp
  install -m644 $srcdir/$_gitname/*.el* \
	  $pkgdir/usr/share/emacs/site-lisp/
  install -Dm755 $srcdir/$_gitname/prepare_4_aur4.sh \
	  $pkgdir/usr/bin/prepare_4_aur4.sh
}