updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / emacs-elib / PKGBUILD
blob022ecaa89e98a75bfb065e97c35c8c92cc05e9be
1 # PKGBUILD for Emacs Lisp Library (elib)
2 # Contributor: J. Bromley <jbromley@gmail.com>
3 # $Id: PKGBUILD,v e6d455730f95 2009/12/03 05:38:28 jbromley $
4 pkgname=emacs-elib
5 _pkgname=elib
6 pkgver=1.0
7 pkgrel=3
8 pkgdesc="The Emacs Lisp library"
9 arch=('i686' 'x86_64')
10 url="http://jdee.sourceforge.net/"
11 license="GPL"
12 depends=('emacs')
13 makedepends=('texinfo' 'gzip')
14 conflicts=()
15 replaces=()
16 backup=()
17 install="$pkgname.install"
18 source=(http://downloads.sourceforge.net/project/jdee/jdee/Dependencies/elib.tar.gz)
19 md5sums=('4feb380f2e3b12eb5500dfe6714e349d')
21 build() {
22 mv $startdir/src/pub/comp/os/unix/gnu/elib/$_pkgname-$pkgver.tar.gz $startdir/src
23 cd $startdir/src/
24 tar -xzf $_pkgname-$pkgver.tar.gz
25 cd $startdir/src/$_pkgname-$pkgver
27 # Fix up paths and old --infodir flag.
28 sed -i 's!/usr/local!/usr!' Makefile
29 sed -i 's!/info!/share/info!' Makefile
30 sed -i 's!--infodir!--info-dir!g' Makefile
32 # Patch to get rid of deprecated code.
33 patch -p1 < $startdir/elib-deprecation.patch
35 # Create directories for installation
36 mkdir -p $startdir/pkg/usr/share/info
37 mkdir -p $startdir/pkg/usr/share/emacs/site-lisp
38 make || return 1
40 # Install the compile package and gzip info file.
41 make prefix=$startdir/pkg/usr install
42 find $startdir/pkg -name dir -exec rm '{}' \;
43 mv $startdir/pkg/usr/share/info/elib.info $startdir/pkg/usr/share/info/elib
44 gzip $startdir/pkg/usr/share/info/elib
47 # Local Variables:
48 # mode: shell-script
49 # End: