mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
add nano
This commit is contained in:
parent
f076d9b6a4
commit
9fc6f6cc93
@ -2,7 +2,7 @@
|
||||
_pkgname=base-efi
|
||||
_reponame=arch
|
||||
pkgname="de-p1st-$_pkgname"
|
||||
pkgver=0.0.4
|
||||
pkgver=0.0.5
|
||||
pkgrel=1
|
||||
pkgdesc="Arch Linux base packages"
|
||||
arch=('any')
|
||||
@ -10,7 +10,7 @@ url="https://codeberg.org/privacy1st/${_reponame}"
|
||||
license=('MIT')
|
||||
groups=()
|
||||
|
||||
depends=('base' 'meta-group-base-devel' 'linux-firmware' 'man-db' 'man-pages' 'nano')
|
||||
depends=('base' 'meta-group-base-devel' 'linux-firmware' 'man-db' 'man-pages' 'de-p1st-nano')
|
||||
# metapackage for 'linux' and 'linux-headers'
|
||||
depends+=('de-p1st-kernel')
|
||||
# pacman config
|
||||
|
35
pkg/de-p1st-nano/.install
Normal file
35
pkg/de-p1st-nano/.install
Normal file
@ -0,0 +1,35 @@
|
||||
# This is a default template for a post-install scriptlet.
|
||||
# Uncomment only required functions and remove any functions
|
||||
# you don't need (and this header).
|
||||
|
||||
## arg 1: the new package version
|
||||
#pre_install() {
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the new package version
|
||||
post_install() {
|
||||
holo apply
|
||||
}
|
||||
|
||||
## arg 1: the new package version
|
||||
## arg 2: the old package version
|
||||
#pre_upgrade() {
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the new package version
|
||||
## arg 2: the old package version
|
||||
post_upgrade() {
|
||||
holo apply
|
||||
}
|
||||
|
||||
## arg 1: the old package version
|
||||
#pre_remove() {
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the old package version
|
||||
post_remove() {
|
||||
holo apply
|
||||
}
|
30
pkg/de-p1st-nano/PKGBUILD
Normal file
30
pkg/de-p1st-nano/PKGBUILD
Normal file
@ -0,0 +1,30 @@
|
||||
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
||||
_pkgname=nano
|
||||
_reponame=arch
|
||||
pkgname="de-p1st-$_pkgname"
|
||||
pkgver=0.0.1
|
||||
pkgrel=1
|
||||
pkgdesc="nano with configuration"
|
||||
arch=('any')
|
||||
url="https://codeberg.org/privacy1st/${_reponame}"
|
||||
license=('MIT')
|
||||
groups=()
|
||||
depends=('nano' 'holo')
|
||||
makedepends=('git')
|
||||
optdepends=()
|
||||
provides=()
|
||||
conflicts=()
|
||||
replaces=()
|
||||
backup=()
|
||||
options=()
|
||||
install='.install'
|
||||
changelog=
|
||||
source=("git+${url}.git")
|
||||
noextract=()
|
||||
sha256sums=('SKIP')
|
||||
|
||||
package() {
|
||||
cd "${_reponame}/pkg/${pkgname}"
|
||||
|
||||
install -Dm0544 nanorc.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/nanorc.holoscript
|
||||
}
|
10
pkg/de-p1st-nano/nanorc.holoscript
Normal file
10
pkg/de-p1st-nano/nanorc.holoscript
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
# stdin: default config
|
||||
# stdout: modified config
|
||||
cat
|
||||
|
||||
# syntax highlighting
|
||||
echo 'include "/usr/share/nano/*.nanorc"'
|
||||
|
||||
## line numbers
|
||||
# echo 'set linenumbers'
|
@ -21,7 +21,7 @@ install=
|
||||
changelog=
|
||||
source=("git+${url}.git")
|
||||
noextract=()
|
||||
sha256sums=() # autofill using updpkgsums, see https://man.archlinux.org/man/updpkgsums.8.en
|
||||
sha256sums=('SKIP') # 'SKIP' for git soruces; Otherwise: autofill using updpkgsums, see https://man.archlinux.org/man/updpkgsums.8.en
|
||||
|
||||
build() {
|
||||
cd "${_reponame}/pkg/${pkgname}"
|
||||
|
Loading…
Reference in New Issue
Block a user