*: clean git pkg and rm py

This commit is contained in:
Kuoi 2023-02-09 19:54:08 +08:00
parent f636851780
commit dd0e6ed93b
5 changed files with 8 additions and 9 deletions

View file

@ -11,8 +11,7 @@ backup=(etc/pacman.d/mirrorlist.bio)
source=(https://raw.githubusercontent.com/BioArchLinux/mirror/main/mirrorlist.bio)
sha256sums=('8a90984620549313c521f12b8b4dea49275af9056959d966973f97a97ce41c63')
pkgver(){
cd $srcdir/mirror
printf $(TZ=UTC git log --no-walk --pretty="%cd" --decorate=full --date=format-local:%Y.%m.%d | head -n 1)
curl -sSi https://raw.githubusercontent.com/BioArchLinux/mirror/main/mirrorlist.bio | 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/pacman.d"

View file

@ -23,7 +23,7 @@ validpgpkeys=(
pkgver() {
cd ${pkgname}
git describe --tags | sed -E 's/-archlinuxcn[0-9]+//'
printf $(TZ=UTC git log --no-walk --pretty="%cd" --decorate=full --date=format-local:%Y.%m.%d | head -n 1)
}
build() {

View file

@ -26,7 +26,7 @@ sha256sums=('SKIP')
pkgver() {
cd $_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
printf $(TZ=UTC git log --no-walk --pretty="%cd" --decorate=full --date=format-local:%Y.%m.%d | head -n 1)
}
build() {

View file

@ -19,7 +19,7 @@ sha256sums=('SKIP'
pkgver() {
cd pid_children
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
printf $(TZ=UTC git log --no-walk --pretty="%cd" --decorate=full --date=format-local:%Y.%m.%d | head -n 1)
}
build() {

View file

@ -1,11 +1,11 @@
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
build_prefix: extra-x86_64
post_build: git_pkgbuild_commit
post_build_script: |
git_add_files('PKGBUILD')
git_pkgbuild_commit()
git_commit()
update_on:
- source: github
github: lilydjwg/pid_children