summaryrefslogtreecommitdiff
path: root/pcr/emacs-elib/PKGBUILD
blob: 8e58112d514bc5ab06fa1a3e6fbbc0bd921c038b (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
38
39
40
41
42
43
44
45
46
47
48
# Contributor (Arch): J. Bromley <jbromley@gmail.com>
# Contributor (Arch): Stefan Husmann <stefan-husmann@t-online.de>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>

pkgname=emacs-elib
_pkgname=elib
pkgver=1.0
pkgrel=4.1
pkgdesc="The Emacs Lisp library"
arch=('any')
url="http://jdee.sourceforge.net/"
license=('GPL')
depends=('emacs')
install="$pkgname.install"
source=(http://downloads.sourceforge.net/project/jdee/jdee/Dependencies/elib.tar.gz
        elib-deprecation.patch
        elib.texi.patch)
md5sums=('4feb380f2e3b12eb5500dfe6714e349d'
         '03c491e8a476b4ba4c8e494fed3f54b6'
         '2e88e1585923a05a38aab32f8e49b4fc')

prepare() {
  mv $srcdir/pub/comp/os/unix/gnu/elib/$_pkgname-$pkgver.tar.gz \
     $srcdir
  cd $srcdir/
  bsdtar -xzf $_pkgname-$pkgver.tar.gz
  cd $srcdir/$_pkgname-$pkgver

  # Fix up paths and old --infodir flag.
  sed -i 's!/usr/local!/usr!' Makefile
  sed -i 's!/info!/share/info!' Makefile
  sed -i 's!--infodir!--info-dir!g' Makefile
  
  patch -p1 < $srcdir/elib-deprecation.patch
  patch -p1 < $srcdir/elib.texi.patch
}

build () {
  cd $srcdir/$_pkgname-$pkgver
  make 
}

package() {
  cd $srcdir/$_pkgname-$pkgver
  install -d $pkgdir/usr/share/{info,emacs/site-lisp/elib}
  make prefix=$pkgdir/usr install
  find $pkgdir -name dir -exec rm '{}' \;
}