summaryrefslogtreecommitdiffstats
path: root/testing/emacs
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-12 08:39:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-12 08:56:56 +0000
commit40c431e651733a7d45b26fe71736e4b222425c35 (patch)
treeabadf6d95350f8ba20a369ae18691040713e707e /testing/emacs
parente0622023d460bdea780239ba0e4fadec399f7569 (diff)
downloadaports-40c431e651733a7d45b26fe71736e4b222425c35.tar.bz2
aports-40c431e651733a7d45b26fe71736e4b222425c35.tar.xz
testing/emacs: new aport
GNU Emacs text editor http://www.gnu.org/software/emacs/
Diffstat (limited to 'testing/emacs')
-rw-r--r--testing/emacs/APKBUILD45
1 files changed, 45 insertions, 0 deletions
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 <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+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"