diff --git a/pkg/de-p1st-base-efi/PKGBUILD b/pkg/de-p1st-base-efi/PKGBUILD index 1942c11..b814574 100644 --- a/pkg/de-p1st-base-efi/PKGBUILD +++ b/pkg/de-p1st-base-efi/PKGBUILD @@ -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 diff --git a/pkg/de-p1st-nano/.install b/pkg/de-p1st-nano/.install new file mode 100644 index 0000000..8ef8a94 --- /dev/null +++ b/pkg/de-p1st-nano/.install @@ -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 +} diff --git a/pkg/de-p1st-nano/PKGBUILD b/pkg/de-p1st-nano/PKGBUILD new file mode 100644 index 0000000..9a8e398 --- /dev/null +++ b/pkg/de-p1st-nano/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Daniel Langbein +_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 +} diff --git a/pkg/de-p1st-nano/TODO b/pkg/de-p1st-nano/TODO deleted file mode 100644 index e69de29..0000000 diff --git a/pkg/de-p1st-nano/nanorc.holoscript b/pkg/de-p1st-nano/nanorc.holoscript new file mode 100644 index 0000000..26b2f98 --- /dev/null +++ b/pkg/de-p1st-nano/nanorc.holoscript @@ -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' diff --git a/prototype/proto.PKGBUILD b/prototype/proto.PKGBUILD index 28a2827..f10e0ce 100644 --- a/prototype/proto.PKGBUILD +++ b/prototype/proto.PKGBUILD @@ -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}"