From 40c431e651733a7d45b26fe71736e4b222425c35 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 12 Oct 2011 08:39:44 +0000 Subject: testing/emacs: new aport GNU Emacs text editor http://www.gnu.org/software/emacs/ --- testing/emacs/APKBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 testing/emacs/APKBUILD (limited to 'testing/emacs') diff --git a/testing/emacs/APKBUILD b/testing/emacs/APKBUILD new file mode 100644 index 000000000..6c5d9ffaf --- /dev/null +++ b/testing/emacs/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Natanael Copa +# Maintainer: Natanael Copa +pkgname=emacs +pkgver=23.3a +pkgrel=0 +pkgdesc="GNU Emacs text editor" +url="http://www.gnu.org/software/emacs/" +arch="all" +license="GPLv3+" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="ftp://ftp.gnu.org/gnu/emacs/emacs-$pkgver.tar.bz2" + +_builddir="$srcdir"/emacs-23.3 +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-x=no \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="f2cf8dc6f28f8ae59bc695b4ddda339c emacs-23.3a.tar.bz2" -- cgit v1.2.3