X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id D85F4DC0090 for ; Sun, 22 Jun 2014 22:29:16 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id hz1so5107081pad.10 for ; Sun, 22 Jun 2014 15:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=8NoXEePVbRZ85oFHTDDfnxzfHjDQVHilAEEZihgMO5I=; b=d6hY0ciwW0rGyTTkUkmbjpHbkONPo2syNZXzTGcfXlGKLHsrpZBC/hqS6zOi9ZJXdA lL5lH6ZOEWAkhpEXKafVUiIX20+Fz2LeLOtL7gtdy1RC8JeKJhL1V6oKmx/umVSQn27n 2H7kkmJPyCwWubcXwF+eA8YfO6/VjZnuvp0HFwD0dLjvsnDY/sKLx2ED8AjWVKQCoLo9 i2V8FzUUgn97kt55NsvmXrMqWwvg3a/egsx5HIDBlccmhnQaX+K+QxvQW0ojFPwBWe/8 4x7RDGh4PGMzF1Yq7IBAqBwGtcObA0MuswmmSpUww6eDbQ52DKjHN81+O9Hcwe9KNEgj lNow== X-Received: by 10.68.174.33 with SMTP id bp1mr23990203pbc.74.1403476156167; Sun, 22 Jun 2014 15:29:16 -0700 (PDT) Received: from localhost.localdomain ([50.0.227.6]) by mx.google.com with ESMTPSA id lr3sm82703661pab.4.2014.06.22.15.29.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Jun 2014 15:29:15 -0700 (PDT) From: Isaac Dunham To: alpine-devel@lists.alpinelinux.org Cc: Isaac Dunham Subject: [alpine-devel] [PATCH 2/2] Add Nedit, a Motif text editor. Date: Sun, 22 Jun 2014 22:27:42 +0000 Message-Id: <1403476062-4677-1-git-send-email-ibid.ag@gmail.com> X-Mailer: git-send-email 2.0.0 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/nedit/APKBUILD | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 testing/nedit/APKBUILD diff --git a/testing/nedit/APKBUILD b/testing/nedit/APKBUILD new file mode 100644 index 0000000..83f71da --- /dev/null +++ b/testing/nedit/APKBUILD @@ -0,0 +1,66 @@ +# Contributor: Isaac Dunham +# Maintainer: +pkgname=nedit +pkgver=5.6 +cvsver=cvs20081118 +pkgrel=0 +pkgdesc="The Nirvana Editor, a multi-purpose X11 editor that's easy to use" +url="http://www.nedit.org" +arch="all" +license="GPL2+" +depends="" +depends_dev="" +# perl for docs, bison and flex are used but may be optional +makedepends="$depends_dev motif-dev bison flex perl" +install="" +subpackages="$pkgname-doc" +#source="http://downloads.sourceforge.net/nedit/nedit-source/$pkgver/nedit-$pkgver-src.tar.gz" +source="http://ftp.de.debian.org/debian/pool/main/n/nedit/nedit_$pkgver~$cvsver.orig.tar.gz +http://ftp.de.debian.org/debian/pool/main/n/nedit/nedit_$pkgver~$cvsver-9.debian.tar.xz" + +_builddir="$srcdir/$pkgname-$pkgver.orig" +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 + cat "$srcdir"/debian/patches/series | { while read i ; do + msg $i + patch -p1 -i "$srcdir"/debian/patches/$i || return 1 + done; } + sed -e "s/CFLAGS=-O/CFLAGS=$CFLAGS -DBUILD_UNTESTED_NEDIT/g" -i makefiles/Makefile.linux +} + +build() { + cd "$_builddir" + make linux || exit 1 + make docs ||make -j1 docs || { env; exit 1; } +} + +package() { + cd "$_builddir" + install -s -Dm 0755 source/nedit "$pkgdir"/usr/bin/nedit + install -s -Dm 0755 source/nc "$pkgdir"/usr/bin/nedit-nc +} + +doc() { + cd "$_builddir" + install -Dm 0644 doc/nedit.man "$subpkgdir"/usr/share/man/man1/nedit.1 + install -Dm 0644 doc/nc.man "$subpkgdir"/usr/share/man/man1/nedit-nc.1 + mkdir -p "$subpkgdir"/usr/share/doc/nedit + for i in README COPYRIGHT ReleaseNotes \ + doc/nedit.doc doc/nedit.html doc/faq.txt; do + install -Dm 0644 $i "$subpkgdir"/usr/share/doc/nedit || exit 1 + done + +} + +md5sums="4d0ba8f4142d3f35ffec874470cf26dd nedit_5.6~cvs20081118.orig.tar.gz +902fb6059205964f333ce821726dbdac nedit_5.6~cvs20081118-9.debian.tar.xz" +sha256sums="cb90052aef7d5839b31e3b2c3374f156e4d1edb273cfbd037c4f9ab5de83cf6f nedit_5.6~cvs20081118.orig.tar.gz +0f2305f731b1ca1538753ed2e36a2c04d3977e3cc2b69635667f56e087792db4 nedit_5.6~cvs20081118-9.debian.tar.xz" +sha512sums="f531364bfb24e06f8eb45d44a119be44fdeb0f64c1a25f74af07676c8b274fdd56076086a85c00761ba74b7acd7d54e0443233d1def2f89a2bcaf46a9b1ed598 nedit_5.6~cvs20081118.orig.tar.gz +a3962162ef8bdd79e8bf94f15bb7f7037d8354b263888cf3961f35ac4be7219f94e11ad86472156b222d00bc547793c6267a4f609acf52dc6146d3b1a4d5755f nedit_5.6~cvs20081118-9.debian.tar.xz" -- 2.0.0 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---