Skip to content

Commit 88dd491

Browse files
authored
Merge pull request #2 from Hayao0819/master
2 parents 95bda13 + 57219fb commit 88dd491

File tree

13 files changed

+532
-15
lines changed

13 files changed

+532
-15
lines changed

.dockerignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
*.tar
2+
*.pkg.tar.*
3+
*.jar
4+
*.exe
5+
*.msi
6+
*.zip
7+
*.tgz
8+
*.log
9+
*.log.*
10+
*.sig
11+
*.tar.gz
12+
pkg/
13+
src/
14+
/temp
15+
.DS_Store
16+
/work

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
FROM archlinux:latest
22

33
# Setuo mirror
4-
RUN echo 'Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
5-
RUN pacman -Sy --noconfirm reflector
4+
RUN echo 'Server = http://mirrors.cat.net/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
5+
RUN pacman -Sy --noconfirm
6+
RUN pacman-key --init
7+
RUN pacman -S archlinux-keyring --noconfirm
8+
RUN pacman -Su --noconfirm
9+
RUN pacman -S --noconfirm reflector
610
RUN reflector --protocol https -c Japan --sort rate --save /etc/pacman.d/mirrorlist
7-
RUN pacman -Sy --noconfirm devtools base-devel
11+
RUN pacman -Sy --noconfirm devtools base-devel --needed
812
RUN systemd-machine-id-setup
913

1014
# Setup environment

configs/config.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Config file for all architecture
2+
3+
set -xv
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*
2+
!.SRCINFO
3+
!PKGBUILD
4+
!alterlinux-mirrorlist-update
5+
!alterlinux-mirrorlist.service
6+
!mirrorlist-alter
7+
!.gitignore
Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
# Maintainer : Yamada Hayao <[email protected]>
22
# Maintainer : lap1sid <[email protected]>
33
pkgname=alterlinux-mirrorlist
4-
pkgver=20211010
4+
pkgver=20220323
55
pkgrel=1
66
pkgdesc='AlterLinux repository mirrorlists'
77
arch=('any')
88
url='https:/fascode.net'
9-
source=("mirrorlist-alter")
10-
sha256sums=('SKIP')
9+
fasbashlib="v0.1.3"
10+
backup=("etc/pacman.d/mirrorlist-alter")
11+
source=("mirrorlist-alter"
12+
"alterlinux-mirrorlist-update"
13+
"alterlinux-mirrorlist.service"
14+
"https://github.com/Hayao0819/FasBashLib/releases/download/${fasbashlib}/fasbashlib.sh")
15+
sha256sums=('4bb31a0c4569ffa82642a118beb2a513163937fb33b46970d545de98e731ab69'
16+
'SKIP'
17+
'f3e8e33f64b11020553334ef59e17e120f04fa0f8c2e1ac4956618b3c149f0d3'
18+
'1d28a30b19b1b3bce2ed1cbc471105ce63c27ed807f475c024d38d2fc2197368')
1119
package() {
12-
cd "${srcdir}"
1320
install -Dm644 "${srcdir}/mirrorlist-alter" "${pkgdir}/etc/pacman.d/mirrorlist-alter"
21+
install -Dm755 "${srcdir}/alterlinux-mirrorlist-update" "${pkgdir}/usr/bin/alterlinux-mirrorlist-update"
22+
install -Dm644 "${srcdir}/alterlinux-mirrorlist.service" "${pkgdir}/usr/lib/systemd/system/alterlinux-mirrorlist.service"
23+
install -Dm755 "${srcdir}/fasbashlib.sh" "${pkgdir}/usr/lib/alterlinux-mirrorlist/fasbashlib.sh"
1424
}

0 commit comments

Comments
 (0)