53 lines
1.2 KiB
Bash
53 lines
1.2 KiB
Bash
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
|
|
|
pkgname=nano
|
|
pkgver=8.5
|
|
pkgrel=1
|
|
pkgdesc="Pico editor clone with enhancements"
|
|
arch=('i686' 'x86_64')
|
|
license=('spdx:GPL-3.0-or-later')
|
|
url="https://www.nano-editor.org"
|
|
msys2_repository_url="https://git.savannah.gnu.org/cgit/nano.git"
|
|
msys2_references=(
|
|
"cpe: cpe:/a:gnu:nano"
|
|
)
|
|
groups=('editors')
|
|
depends=('file' 'libintl' 'ncurses' 'sh')
|
|
makedepends=('autotools'
|
|
'gcc'
|
|
'ncurses-devel'
|
|
'libiconv-devel'
|
|
'gettext-devel')
|
|
backup=('etc/nanorc')
|
|
source=(https://www.nano-editor.org/dist/v8/${pkgname}-${pkgver}.tar.xz{,.asc})
|
|
sha256sums=('000b011d339c141af9646d43288f54325ff5c6e8d39d6e482b787bbc6654c26a'
|
|
'SKIP')
|
|
validpgpkeys=(
|
|
'168E6F4297BFD7A79AFD4496514BBE2EB8E1961F' # Benno Schulenberg <bensberg@telfort.nl>
|
|
)
|
|
|
|
prepare() {
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
autoreconf -vfi
|
|
}
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
./configure --build=${CHOST} \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--enable-color \
|
|
--enable-nanorc \
|
|
--enable-utf8
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make DESTDIR=${pkgdir} install
|
|
install -DTm644 ${srcdir}/${pkgname}-${pkgver}/doc/sample.nanorc ${pkgdir}/etc/nanorc
|
|
}
|