summaryrefslogtreecommitdiff
path: root/pcr/emhacks/PKGBUILD
blob: e4df353d9a7520a65b3d4a6ffeebf3cbc65b6dec (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 (Arch): Junmin Huang <junmin(dot)h(at)gmail(dot)com>
# Contributor (Arch): Stefan Husmann <stefan-husmann@t-online.de>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>

# parabola changes and rationale:
#  upstream pkgbuild is gone, but we keep maintaining this

pkgname=emhacks
pkgver=20070920
pkgrel=5
pkgdesc="Useful Emacs Lisp libraries, including gdiff, jjar, jmaker, swbuff and tabbar, packaged from gentoo portage"
arch=('any')
url="http://emhacks.sourceforge.net/"
license=('GPL2')
depends=(emacs)
install=emhacks.install
source=(http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/distfiles/$pkgname-$pkgver.tar.bz2)
md5sums=('d349c78d25ce91a6f9c3e6446b129fc8')

build() {
  cd $srcdir/$pkgname-$pkgver

  # remove files included in Emacs>=22 or not useful on GNU/Linux
  rm -r findstr* overlay-fix* recentf* ruler-mode* tree-widget*
  for _i in gdiff-setup jjar jmaker swbuff tabbar
  do
    [ -f ${_i}.el.gz ] && rm ${_i}.el.gz
    emacs -batch -q -f batch-byte-compile ${_i}.el
    gzip ${_i}.el
  done
}
package() {
  install -d $pkgdir/usr/share/emacs/site-lisp/$pkgname
  install -Dm644 $srcdir/$pkgname-$pkgver/* \
    $pkgdir/usr/share/emacs/site-lisp/$pkgname
}