summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a300b53661f934028d03b31a0c3dbfe524cb8f2 (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
# Contributor: Frikilinux <frikilinux@frikilinux.com.ar>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=emacs-identica-mode
_realname=identica-mode
pkgver=1.3.1
pkgrel=3
pkgdesc="GNU Emacs mode for laconi.ca microblogging service."
arch=('any')
url="http://git.savannah.gnu.org/cgit/${_realname}.git"
license=('GPL2' 'FDL1.2')
depends=('emacs' 'curl' 'wget')
makedepends=('texinfo')
install=${_realname}.install
source=("http://git.savannah.gnu.org/cgit/${_realname}.git/snapshot/${_realname}-$pkgver.tar.gz")
md5sums=('8ed77c6e9a1409d88e8a240fda5ac86d')

build() {
  cd $srcdir/${_realname}-$pkgver
  emacs -batch -q -f batch-byte-compile ${_realname}.el
  cd $srcdir/${_realname}-$pkgver/doc
  makeinfo ${_realname}.texi
}

package() {
  cd $srcdir/${_realname}-$pkgver
  install -d $pkgdir/usr/share/emacs/site-lisp/
  for _i in *.el *.elc
  do 
    install -m644 $srcdir/${_realname}-$pkgver/${_i} \
      $pkgdir/usr/share/emacs/site-lisp/${_i}
  done
  install -Dm644 $srcdir/${_realname}-$pkgver/doc/${_realname}.info \
    $pkgdir/usr/share/info/${_realname}.info
}