diff options
Diffstat (limited to 'user/nano/APKBUILD')
-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" |