blob: eae0a12fef16ef79664ea13a0fd0c0bf23f2c27c (
plain) (
tree)
|
|
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer:
pkgname=nano
pkgver=2.9.8
pkgrel=0
pkgdesc="Enhanced clone of the Pico text editor"
url="https://www.nano-editor.org"
arch="all"
license="GPL-3.0+"
makedepends="file-dev ncurses-dev"
subpackages="$pkgname-doc $pkgname-lang"
replaces="nano-syntax" # ??? why was this ever split
source="https://www.nano-editor.org/dist/v${pkgver%.*}/$pkgname-$pkgver.tar.xz"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-wordbounds
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -Dm644 doc/sample.nanorc \
"$pkgdir"/etc/nanorc
# Proper syntax highlighting for APKBUILDs
sed -i "/syntax/s/\"$/\" \"APKBUILD&/" \
"$pkgdir"/usr/share/nano/sh.nanorc
rm -rf "$pkgdir"/usr/lib/charset.alias
}
sha512sums="9a8230bb1312be4e7f44c5fb42c32d773dd4e488d41980c5aee1de0f9b5642b938a940649f3b5bfb848625c0c258ea15333cad861b5a368e3746f1f396df452b nano-2.9.8.tar.xz"
|