mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
add pacman (mirrorlist and custom repo)
This commit is contained in:
parent
8f7ecf0e91
commit
b48f42f55a
34
pkg/de-p1st-pacman/PKGBUILD
Normal file
34
pkg/de-p1st-pacman/PKGBUILD
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
||||||
|
_pkgname=pacman
|
||||||
|
_reponame=arch-pkg
|
||||||
|
pkgname="de-p1st-$_pkgname"
|
||||||
|
pkgver=0.0.1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="pacman with configuration"
|
||||||
|
arch=('any')
|
||||||
|
url="https://git.privacy1st.de/langfingaz/${_reponame}"
|
||||||
|
license=('MIT')
|
||||||
|
groups=()
|
||||||
|
depends=('pacman' 'holo')
|
||||||
|
makedepends=()
|
||||||
|
optdepends=()
|
||||||
|
provides=()
|
||||||
|
conflicts=()
|
||||||
|
replaces=()
|
||||||
|
backup=()
|
||||||
|
options=()
|
||||||
|
install="${pkgname}.install"
|
||||||
|
changelog=
|
||||||
|
source=("git+${url}.git")
|
||||||
|
noextract=()
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${_reponame}/pkg/${pkgname}"
|
||||||
|
|
||||||
|
install -Dm0644 pacman.d/de-p1st "$pkgdir"/etc/pacman.d/de-p1st
|
||||||
|
|
||||||
|
install -Dm0644 pacman.d/mirrorlist "$pkgdir"/usr/share/holo/files/de-p1st-pacman/etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
install -Dm0644 pacman.conf.holoscript "$pkgdir"/usr/share/holo/files/de-p1st-pacman/etc/pacman.conf.holoscript
|
||||||
|
}
|
35
pkg/de-p1st-pacman/de-p1st-pacman.install
Normal file
35
pkg/de-p1st-pacman/de-p1st-pacman.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
|
||||||
|
}
|
5
pkg/de-p1st-pacman/pacman.conf.holoscript
Normal file
5
pkg/de-p1st-pacman/pacman.conf.holoscript
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# stdin: default config
|
||||||
|
# stdout: modified config
|
||||||
|
cat
|
||||||
|
Include = /etc/pacman.d/de-p1st
|
5
pkg/de-p1st-pacman/pacman.d/de-p1st
Normal file
5
pkg/de-p1st-pacman/pacman.d/de-p1st
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# in /etc/pacman.conf -> Include = /path/to/this/cfg/file
|
||||||
|
|
||||||
|
[de-p1st]
|
||||||
|
SigLevel = Optional TrustAll
|
||||||
|
Server = https://arch.p1st.de
|
6
pkg/de-p1st-pacman/pacman.d/mirrorlist
Normal file
6
pkg/de-p1st-pacman/pacman.d/mirrorlist
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
##
|
||||||
|
## Arch Linux repository mirrorlist
|
||||||
|
##
|
||||||
|
|
||||||
|
Server = https://ftp.fau.de/archlinux/$repo/os/$arch
|
||||||
|
Server = https://mirror.chaoticum.net/arch/$repo/os/$arch
|
35
prototype/proto-holo.install
Normal file
35
prototype/proto-holo.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
|
||||||
|
}
|
35
prototype/proto.install
Normal file
35
prototype/proto.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() {
|
||||||
|
# do something here
|
||||||
|
#}
|
||||||
|
|
||||||
|
## 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() {
|
||||||
|
# do something here
|
||||||
|
#}
|
||||||
|
|
||||||
|
## arg 1: the old package version
|
||||||
|
#pre_remove() {
|
||||||
|
# do something here
|
||||||
|
#}
|
||||||
|
|
||||||
|
## arg 1: the old package version
|
||||||
|
#post_remove() {
|
||||||
|
# do something here
|
||||||
|
#}
|
Loading…
Reference in New Issue
Block a user