jobcore/nano/PKGBUILD
2024-07-13 02:10:12 +03:00

61 lines
2.1 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=nano
pkgver=8.1
pkgrel=01
pkgdesc="Pico editor clone with enhancements"
groups=( jobbot base )
url="https://www.nano-editor.org"
depends=('ncurses' 'file' 'glibc')
backup=('etc/nanorc')
#options=('debug') ### uncomment this to have the debug pkg produced
source=(https://www.nano-editor.org/dist/v8/${pkgname}-${pkgver}.tar.xz{,.asc}
jobo.nanorc)
build() {
cd ${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-color \
--enable-nanorc \
--enable-multibuffer \
--enable-threads=posix \
--disable-wordcomp \
--disable-wrapping \
--enable-utf8 \
--enable-year2038
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
# install -DTm644 "${srcdir}"/${pkgname}-${pkgver}/doc/sample.nanorc "${pkgdir}"/etc/nanorc
# we substituted our own colorized nanorc, basically uncommenting the colors proposed
install -DTm644 "${srcdir}"/jobo.nanorc "${pkgdir}"/etc/nanorc
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL-3.0-or-later')
#validpgpkeys=('8DA6FE7BFA7A418AB3CB2354BCB356DF91009FA7' # "Chris Allegretta <chrisa@asty.org>"
# 'A7F6A64A67DA09EF92782DD79DF4862AF1175C5B' # "Benno Schulenberg <bensberg@justemail.net>"
#validpgpkeys=('BFD009061E535052AD0DF2150D28D4D2A0ACE884') # "Benno Schulenberg <bensberg@telfort.nl>"
validpgpkeys=('168E6F4297BFD7A79AFD4496514BBE2EB8E1961F') # "Benno Schulenberg <bensberg@telfort.nl>"
sha256sums=(93b3e3e9155ae389fe9ccf9cb7ab380eac29602835ba3077b22f64d0f0cbe8cb # nano-8.1.tar.xz
53da5b3105a48b5841d2f18e0355090cee9a84d556e76424cc7e6d6c7d1da7df # nano-8.1.tar.xz.asc
b6c0a10c45766ec0afa5af5e2fca639bc08d2b06f62a4356402253e080d20f9a) # jobo.nanorc
## 30481864b4ed9a9c017e9a8da5d776ae80859363c51ac9fb446183e7a4ed2e28 nano-8.1-01-x86_64.pkg.tar.lz