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 $
8 pkgdesc="The Emacs Lisp library"
10 url="http://jdee.sourceforge.net/"
13 makedepends=('texinfo' 'gzip')
17 install="$pkgname.install"
18 source=(http://downloads.sourceforge.net/project/jdee/jdee/Dependencies/elib.tar.gz)
19 md5sums=('4feb380f2e3b12eb5500dfe6714e349d')
22 mv $startdir/src/pub/comp/os/unix/gnu/elib/$_pkgname-$pkgver.tar.gz $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
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