Compare commits
6 Commits
7fb0de38c9
..
v2.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| e59fba0689 | |||
| fe174ba2e0 | |||
| d8ab530fa8 | |||
| 07142eb19e | |||
| da3c0d6896 | |||
| 07d281d9f1 |
@@ -23,7 +23,7 @@ jobs:
|
|||||||
wget -qO source.tar.gz "$TAR_URL"
|
wget -qO source.tar.gz "$TAR_URL"
|
||||||
SHA256=$(sha256sum source.tar.gz | awk '{print $1}')
|
SHA256=$(sha256sum source.tar.gz | awk '{print $1}')
|
||||||
|
|
||||||
cat << EOF > PKGBUILD
|
cat << 'EOF' > PKGBUILD
|
||||||
# Maintainer: Uyanide <me@uyani.de>
|
# Maintainer: Uyanide <me@uyani.de>
|
||||||
pkgname=wallreel
|
pkgname=wallreel
|
||||||
pkgver=${{ env.VERSION }}
|
pkgver=${{ env.VERSION }}
|
||||||
@@ -34,46 +34,57 @@ jobs:
|
|||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('qt6-base' 'qt6-declarative' 'gcc-libs' 'glibc')
|
depends=('qt6-base' 'qt6-declarative' 'gcc-libs' 'glibc')
|
||||||
makedepends=('cmake' 'ninja')
|
makedepends=('cmake' 'ninja')
|
||||||
source=("\${pkgname}-\${pkgver}.tar.gz::\$TAR_URL")
|
source=("${pkgname}-${pkgver}.tar.gz::https://git.uyani.de/Uyanide/WallReel/archive/v${pkgver}.tar.gz")
|
||||||
sha256sums=('\$SHA256')
|
sha256sums=('INSERT_SHA256_HERE')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "wallreel"
|
cd "wallreel"
|
||||||
cmake -B build -S . -G Ninja \\
|
cmake -B build -S . -G Ninja \
|
||||||
-DCMAKE_BUILD_TYPE='Release' \\
|
-DCMAKE_BUILD_TYPE='Release' \
|
||||||
-DCMAKE_INSTALL_PREFIX='/usr' \\
|
-DCMAKE_INSTALL_PREFIX='/usr' \
|
||||||
-Wno-dev
|
-Wno-dev
|
||||||
cmake --build build
|
cmake --build build
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "wallreel"
|
cd "wallreel"
|
||||||
DESTDIR="\$pkgdir" cmake --install build
|
DESTDIR="$pkgdir" cmake --install build
|
||||||
install -Dm644 LICENSE "\$pkgdir/usr/share/licenses/\$pkgname/LICENSE"
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
sed -i "s/INSERT_SHA256_HERE/$SHA256/" PKGBUILD
|
||||||
|
|
||||||
- name: Build and Generate AUR Meta
|
- name: Build and Generate AUR Meta
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -v ${{ github.workspace }}:/workspace archlinux:latest /bin/bash -c "
|
tar -cf - . | docker run --rm -i archlinux:latest /bin/bash -e -c "
|
||||||
pacman -Syu --noconfirm base-devel cmake ninja qt6-base qt6-declarative sudo
|
mkdir -p /workspace && cd /workspace
|
||||||
|
tar -xf -
|
||||||
|
exec 3>&1 1>&2
|
||||||
|
|
||||||
|
pacman-key --init && pacman-key --populate
|
||||||
|
pacman -Sy --noconfirm archlinux-keyring
|
||||||
|
pacman -Su --noconfirm base-devel cmake ninja qt6-base qt6-declarative sudo
|
||||||
|
|
||||||
useradd -m builduser
|
useradd -m builduser
|
||||||
chown -R builduser:builduser /workspace
|
chown -R builduser:builduser /workspace
|
||||||
echo 'builduser ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
echo 'builduser ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||||
|
|
||||||
su - builduser -c 'cd /workspace && makepkg -sf --noconfirm'
|
su - builduser -c 'cd /workspace && makepkg -sf --noconfirm'
|
||||||
su - builduser -c 'cd /workspace && makepkg --printsrcinfo > .SRCINFO'
|
su - builduser -c 'cd /workspace && makepkg --printsrcinfo' > SRCINFO.txt
|
||||||
"
|
|
||||||
|
tar -cf - *.pkg.tar.zst PKGBUILD LICENSE SRCINFO.txt >&3
|
||||||
|
" | tar -xf -
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: release-artifacts
|
name: release-artifacts
|
||||||
path: |
|
path: |
|
||||||
*.pkg.tar.zst
|
*.pkg.tar.zst
|
||||||
PKGBUILD
|
PKGBUILD
|
||||||
LICENSE
|
LICENSE
|
||||||
.SRCINFO
|
SRCINFO.txt
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Publish
|
name: Publish
|
||||||
@@ -84,7 +95,7 @@ jobs:
|
|||||||
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Download Artifacts
|
- name: Download Artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: release-artifacts
|
name: release-artifacts
|
||||||
path: .
|
path: .
|
||||||
@@ -118,7 +129,8 @@ jobs:
|
|||||||
git config --global user.email "me@uyani.de"
|
git config --global user.email "me@uyani.de"
|
||||||
|
|
||||||
git clone ssh://aur@aur.archlinux.org/wallreel.git aur-repo
|
git clone ssh://aur@aur.archlinux.org/wallreel.git aur-repo
|
||||||
cp PKGBUILD LICENSE .SRCINFO aur-repo/
|
cp PKGBUILD LICENSE aur-repo/
|
||||||
|
cp SRCINFO.txt aur-repo/.SRCINFO
|
||||||
cd aur-repo
|
cd aur-repo
|
||||||
|
|
||||||
git add PKGBUILD LICENSE .SRCINFO
|
git add PKGBUILD LICENSE .SRCINFO
|
||||||
|
|||||||
Reference in New Issue
Block a user