diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-03 23:22:20 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-03 23:22:20 +0000 |
commit | f2b5773da19ab397fbe64fd32dacc383cfe4cd77 (patch) | |
tree | c77deaa33fdd1ca848af0ba072e839cac757326b | |
parent | 820daaf0c520d0151839c38a3f31c8afdb38b224 (diff) | |
download | packages-f2b5773da19ab397fbe64fd32dacc383cfe4cd77.tar.gz packages-f2b5773da19ab397fbe64fd32dacc383cfe4cd77.tar.bz2 packages-f2b5773da19ab397fbe64fd32dacc383cfe4cd77.tar.xz packages-f2b5773da19ab397fbe64fd32dacc383cfe4cd77.zip |
user/nano: pull in, fix up, bump to 2.9.8
-rw-r--r-- | user/nano/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/user/nano/APKBUILD b/user/nano/APKBUILD new file mode 100644 index 000000000..eae0a12fe --- /dev/null +++ b/user/nano/APKBUILD @@ -0,0 +1,47 @@ +# 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" |