summaryrefslogtreecommitdiffstats
path: root/abs/core/nano
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
commit0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch)
treec0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core/nano
downloadlinhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2
initial import
Diffstat (limited to 'abs/core/nano')
-rw-r--r--abs/core/nano/PKGBUILD25
-rw-r--r--abs/core/nano/nano.install20
2 files changed, 45 insertions, 0 deletions
diff --git a/abs/core/nano/PKGBUILD b/abs/core/nano/PKGBUILD
new file mode 100644
index 0000000..4dcf3bc
--- /dev/null
+++ b/abs/core/nano/PKGBUILD
@@ -0,0 +1,25 @@
+# $Id: PKGBUILD 10350 2008-08-27 14:18:15Z andyrtr $
+# Maintainer: Judd <judd@archlinux.org>
+pkgname=nano
+pkgver=2.0.8
+pkgrel=12
+pkgdesc="Pico editor clone with enhancements"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://www.nano-editor.org"
+groups=('base')
+depends=('glibc' 'ncurses')
+source=(http://www.nano-editor.org/dist/v2.0/nano-${pkgver}.tar.gz)
+backup=(etc/nanorc)
+md5sums=('fcb2a26285921458b6fe381c2802b1a8')
+install=nano.install
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./configure --prefix=/usr --sysconfdir=/etc --enable-color --enable-nanorc --enable-multibuffer --disable-wrapping
+ make || return 1
+ make DESTDIR=${pkgdir} install || return 1
+ install -DTm644 ${srcdir}/${pkgname}-${pkgver}/doc/nanorc.sample ${pkgdir}/etc/nanorc
+
+ rm -f ${pkgdir}/usr/share/info/dir
+}
diff --git a/abs/core/nano/nano.install b/abs/core/nano/nano.install
new file mode 100644
index 0000000..9842c9e
--- /dev/null
+++ b/abs/core/nano/nano.install
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(nano.info)
+
+post_install() {
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+# vim:set ts=2 sw=2 et: