# Contributor: Michael Mason # Maintainer: pkgname=nano pkgver=3.0 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="120b606d65672a905e9ef9f3b55381cc62b7929abeaf409ea4af6be9f51b3d038e6e68f082755cbb7e198f0fb5203e0f4796c6c96ebd054d9a2241b313fcdda1 nano-3.0.tar.xz"