bioarchlinux-pacmanconf, base-bio: init

This commit is contained in:
Kuoi 2023-03-22 14:53:42 +08:00
parent 5c458a5558
commit c03bef156a
3 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,14 @@
pkgname=base
pkgver=1
pkgrel=0
pkgdesc='Minimal package set to define a basic BioArchLinux installation'
url='https://www.bioarchlinux.org'
arch=('any')
license=('GPL')
depends=(
# very very base
'base'
# BioArchLinux related
'bioarchlinux-pacmanconf' 'bioarchlinux-mirrorlist' 'bioarchlinux-keyring'
)

View file

@ -0,0 +1,20 @@
# Maintainer: Guoyi
pkgname=bioarchlinux-pacmanconf
pkgver=2023.03.22
pkgrel=0
pkgdesc="BioArchLinux pacman conf for use by pacman"
arch=('any')
url="https://github.com/BioArchLinux/iso"
license=('GPL')
backup=(etc/pacman.conf)
source=(https://raw.githubusercontent.com/BioArchLinux/iso/master/bio/pacman.conf)
sha256sums=('bf34baf5b9b662e63a714946c9de8548c85daab14e4f10ba570234bb8a723228')
pkgver(){
curl -sSi https://raw.githubusercontent.com/BioArchLinux/iso/master/bio/pacman.conf | grep 'date' | sed 's/Jan/01/g;s/Feb/02/g;s/Mar/03/g;s/Apr/04/g;s/May/05/g;s/Jun/06/g;s/Jul/07/g;s/Aug/08/g;s/Sep/09/g;s/Oct/10/g;s/Nov/11/g;s/Dec/12/g' | awk '{print $5,$4,$3}' | sed 's/ /./g'
}
package() {
mkdir -p "$pkgdir/etc/"
install -m644 "$srcdir/pacman.conf" "$pkgdir/etc/pacman.conf"
}

View file

@ -0,0 +1,12 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
pre_build_script: |
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
post_build_script: |
git_pkgbuild_commit()
update_on:
- source: cmd
cmd: curl -sSi https://raw.githubusercontent.com/BioArchLinux/iso/master/bio/pacman.conf | grep 'date' | sed 's/Jan/01/g;s/Feb/02/g;s/Mar/03/g;s/Apr/04/g;s/May/05/g;s/Jun/06/g;s/Jul/07/g;s/Aug/08/g;s/Sep/09/g;s/Oct/10/g;s/Nov/11/g;s/Dec/12/g' | awk '{print $5,$4,$3}' | sed 's/ /./g'