diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-05-02 12:21:43 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-05-02 12:21:43 -0500 |
commit | a21a3858afe6091aefd2dc1be425038863efa6c6 (patch) | |
tree | 4af05e4a888248854e953ceba92d1a426d5ebd8c /pcr/emacs-elib/PKGBUILD | |
parent | b7cb1e8afa67c3959fa7f24c466a08d30fdbd569 (diff) |
emacs-elib-1.0-4.1: rebuild
Diffstat (limited to 'pcr/emacs-elib/PKGBUILD')
-rw-r--r-- | pcr/emacs-elib/PKGBUILD | 69 |
1 files changed, 33 insertions, 36 deletions
diff --git a/pcr/emacs-elib/PKGBUILD b/pcr/emacs-elib/PKGBUILD index 7382423f1..8e58112d5 100644 --- a/pcr/emacs-elib/PKGBUILD +++ b/pcr/emacs-elib/PKGBUILD @@ -1,51 +1,48 @@ -# PKGBUILD for Emacs Lisp Library (elib) # Contributor (Arch): J. Bromley <jbromley@gmail.com> -# $Id: PKGBUILD,v e6d455730f95 2009/12/03 05:38:28 jbromley $ +# 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=3 +pkgrel=4.1 pkgdesc="The Emacs Lisp library" -arch=('i686' 'x86_64' 'mips64el') +arch=('any') url="http://jdee.sourceforge.net/" -license="GPL" +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') +source=(http://downloads.sourceforge.net/project/jdee/jdee/Dependencies/elib.tar.gz + elib-deprecation.patch + elib.texi.patch) +md5sums=('4feb380f2e3b12eb5500dfe6714e349d' + '03c491e8a476b4ba4c8e494fed3f54b6' + '2e88e1585923a05a38aab32f8e49b4fc') -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 +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 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 + # 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 +} -# 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 +build () { + cd $srcdir/$_pkgname-$pkgver + make } -# Local Variables: -# mode: shell-script -# End: +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 '{}' \; +}
\ No newline at end of file |