# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=nano pkgver=7.2 pkgrel=1 pkgdesc="Enhanced clone of the Pico text editor" url="https://www.nano-editor.org" arch="all" license="GPL-3.0-or-later" makedepends="linux-headers ncurses-dev" subpackages="$pkgname-doc $pkgname-syntax::noarch" source="https://www.nano-editor.org/dist/v${pkgver%%.*}/nano-$pkgver.tar.xz" build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-libmagic \ --disable-nls make } check() { make check } package() { 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 } syntax() { pkgdesc="Syntax highlighting definitions for $pkgname" depends="$pkgname=$pkgver-r$pkgrel" amove usr/share/nano/* } sha512sums=" a6dfa70edab62e439a9a998ca214f2415d57dbdc01766ad2e4b14048836557a32755f8b09de13c6a89023f215b61d2854017b389eae8d097ca6f3ba73ce2f583 nano-7.2.tar.xz "