This repository was archived by the owner on Jan 10, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +79
-28
lines changed
Expand file tree Collapse file tree 5 files changed +79
-28
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ FROM archlinux:latest
2+
3+ ARG BRANCH=master
4+
5+ COPY PKGBUILD /tmp/PKGBUILD
6+
7+ RUN pacman -Syu --noconfirm ; \
8+ pacman -S gcc git clang cmake pkg-config libgcrypt fakeroot sudo --noconfirm ; \
9+ pacman -S base-devel --noconfirm
10+
11+ RUN useradd -m -G wheel -s /bin/bash test ; \
12+ cp /tmp/PKGBUILD /home/test/ && chown test:test /home/test/PKGBUILD ; \
13+ sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers
14+
15+ USER test
16+ RUN cd /home/test && makepkg
17+
18+ USER root
19+ RUN pacman -U /home/test/*zst --noconfirm
20+
21+ USER test
22+ RUN yay -S criterion --noconfirm
23+
24+ USER root
25+ RUN git clone https://github.com/paolostivanin/libbaseencode -b $BRANCH ; \
26+ cd libbaseencode ; \
27+ mkdir build && cd $_ ; \
28+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON ; \
29+ make -j2 ;\
30+ ./tests/test_all ;\
31+ make install
32+
Original file line number Diff line number Diff line change 1+ # Maintainer: Jguer <joaogg3 at gmail dot com>
2+ pkgname=yay-bin
3+ pkgver=10.0.4
4+ pkgrel=1
5+ pkgdesc=" Yet another yogurt. Pacman wrapper and AUR helper written in go. Pre-compiled."
6+ arch=(' x86_64' ' aarch64' ' armv7h' )
7+ url=" https://github.com/Jguer/yay"
8+ license=(' GPL' )
9+ depends=(
10+ ' sudo'
11+ ' git'
12+ )
13+ provides=(' yay' )
14+ conflicts=(' yay' )
15+
16+ source_x86_64=(" https://github.com/Jguer/yay/releases/download/v${pkgver} /${pkgname/ -bin/ } _${pkgver} _x86_64.tar.gz" )
17+ source_aarch64=(" https://github.com/Jguer/yay/releases/download/v${pkgver} /${pkgname/ -bin/ } _${pkgver} _aarch64.tar.gz" )
18+ source_armv7h=(" https://github.com/Jguer/yay/releases/download/v${pkgver} /${pkgname/ -bin/ } _${pkgver} _armv7h.tar.gz" )
19+
20+ sha256sums_x86_64=(' 0b52886f075e5e0fdc4d995c08f4b24a90bfd3bda1efbfc3fb17fc2b0212146e' )
21+ sha256sums_aarch64=(' 3eecd85e672141770bee305eb08e5490a5c9ea62e854ca339d6b47f68e709dfa' )
22+ sha256sums_armv7h=(' 3d59b46910a1c532ad5113fb51e8bd3c85a778e6e9a5ec2d3498abc32c56b98b' )
23+
24+ package () {
25+ _output=" ${srcdir} /${pkgname/ -bin/ } _${pkgver} _${CARCH} "
26+ install -Dm755 " ${_output} /${pkgname/ -bin/ } " " ${pkgdir} /usr/bin/${pkgname/ -bin/ } "
27+ install -Dm644 " ${_output} /yay.8" " ${pkgdir} /usr/share/man/man8/yay.8"
28+
29+ # Shell autocompletion script
30+ install -Dm644 " ${_output} /bash" " ${pkgdir} /usr/share/bash-completion/completions/yay"
31+ install -Dm644 " ${_output} /zsh" " ${pkgdir} /usr/share/zsh/site-functions/_yay"
32+ install -Dm644 " ${_output} /fish" " ${pkgdir} /usr/share/fish/vendor_completions.d/yay.fish"
33+
34+ LANGS=" pt pt_BR en es eu fr_FR ja pl_PL ru_RU zh_CN"
35+ for lang in ${LANGS} ; do
36+ install -Dm644 " ${_output} /${lang} .mo" " ${pkgdir} /usr/share/locale/${lang} /LC_MESSAGES/yay.mo"
37+ done
38+ }
39+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if [[ -z " $1 " ]]; then
4+ echo " Usage: $0 <branch-name>"
5+ exit 1
6+ fi
7+
8+ docker build -t " testme:Dockerfile" --build-arg BRANCH=" $1 " .
You can’t perform that action at this time.
0 commit comments