summaryrefslogtreecommitdiff
path: root/pcr/emacs-elib/PKGBUILD
blob: f424b63a45e70960ae7fb6017b91e608e74dc9c9 (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
49
50
51
# PKGBUILD for Emacs Lisp Library (elib)
# Contributor (Arch): J. Bromley <jbromley@gmail.com>
# $Id: PKGBUILD,v e6d455730f95 2009/12/03 05:38:28 jbromley $
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>

pkgname=emacs-elib
_pkgname=elib
pkgver=1.0
pkgrel=3
pkgdesc="The Emacs Lisp library"
arch=('i686' 'x86_64')
url="http://jdee.sourceforge.net/"
license="GPL"
depends=('emacs')
makedepends=('texinfo' 'gzip')
conflicts=()
replaces=()
backup=()
install="$pkgname.install"
source=(http://downloads.sourceforge.net/project/jdee/jdee/Dependencies/elib.tar.gz)
md5sums=('4feb380f2e3b12eb5500dfe6714e349d')

build() {
mv $startdir/src/pub/comp/os/unix/gnu/elib/$_pkgname-$pkgver.tar.gz $startdir/src
cd $startdir/src/
tar -xzf $_pkgname-$pkgver.tar.gz
cd $startdir/src/$_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 to get rid of deprecated code.
patch -p1 < $startdir/elib-deprecation.patch

# Create directories for installation
mkdir -p $startdir/pkg/usr/share/info
mkdir -p $startdir/pkg/usr/share/emacs/site-lisp
make || return 1

# Install the compile package and gzip info file.
make prefix=$startdir/pkg/usr install
find $startdir/pkg -name dir -exec rm '{}' \;
mv $startdir/pkg/usr/share/info/elib.info $startdir/pkg/usr/share/info/elib
gzip $startdir/pkg/usr/share/info/elib
}

# Local Variables:
# mode: shell-script
# End: