PKGBUILDs/core/nano/PKGBUILD

28 lines
893 B
Bash
Raw Normal View History

2009-09-26 14:35:50 +00:00
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
# Archlinux's Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Judd <judd@archlinux.org>
2009-09-26 16:30:17 +00:00
# Modified by OpenPogo
2009-09-26 14:35:50 +00:00
pkgname=nano
pkgver=2.0.9
pkgrel=2
pkgdesc="Pico editor clone with enhancements"
arch=('arm')
license=('GPL')
url="http://www.nano-editor.org"
groups=('base')
2009-09-26 16:30:17 +00:00
depends=('ncurses' 'texinfo')
2009-09-26 14:35:50 +00:00
source=(http://www.nano-editor.org/dist/v2.0/nano-${pkgver}.tar.gz)
2009-09-26 16:30:17 +00:00
backup=(opt/etc/nanorc)
2009-09-26 14:35:50 +00:00
md5sums=('2be94dc43fb60fff4626a2401a977220')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
2009-09-26 16:30:17 +00:00
./configure --prefix=/opt --sysconfdir=/opt/etc --enable-color --enable-nanorc \
2009-09-26 14:35:50 +00:00
--enable-multibuffer --disable-wrapping-as-root
make || return 1
make DESTDIR=${pkgdir} install || return 1
2009-09-26 16:30:17 +00:00
install -DTm644 ${srcdir}/${pkgname}-${pkgver}/doc/nanorc.sample ${pkgdir}/opt/etc/nanorc
rm -f ${pkgdir}/opt/share/info/dir
2009-09-26 14:35:50 +00:00
}