Compare commits
4 Commits
da3c0d6896
...
v2.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| e59fba0689 | |||
| fe174ba2e0 | |||
| d8ab530fa8 | |||
| 07142eb19e |
@@ -23,7 +23,7 @@ jobs:
|
||||
wget -qO source.tar.gz "$TAR_URL"
|
||||
SHA256=$(sha256sum source.tar.gz | awk '{print $1}')
|
||||
|
||||
cat << EOF > PKGBUILD
|
||||
cat << 'EOF' > PKGBUILD
|
||||
# Maintainer: Uyanide <me@uyani.de>
|
||||
pkgname=wallreel
|
||||
pkgver=${{ env.VERSION }}
|
||||
@@ -34,25 +34,27 @@ jobs:
|
||||
license=('MIT')
|
||||
depends=('qt6-base' 'qt6-declarative' 'gcc-libs' 'glibc')
|
||||
makedepends=('cmake' 'ninja')
|
||||
source=("\${pkgname}-\${pkgver}.tar.gz::\$TAR_URL")
|
||||
sha256sums=('\$SHA256')
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://git.uyani.de/Uyanide/WallReel/archive/v${pkgver}.tar.gz")
|
||||
sha256sums=('INSERT_SHA256_HERE')
|
||||
|
||||
build() {
|
||||
cd "wallreel"
|
||||
cmake -B build -S . -G Ninja \\
|
||||
-DCMAKE_BUILD_TYPE='Release' \\
|
||||
-DCMAKE_INSTALL_PREFIX='/usr' \\
|
||||
cmake -B build -S . -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE='Release' \
|
||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
||||
-Wno-dev
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "wallreel"
|
||||
DESTDIR="\$pkgdir" cmake --install build
|
||||
install -Dm644 LICENSE "\$pkgdir/usr/share/licenses/\$pkgname/LICENSE"
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
EOF
|
||||
|
||||
sed -i "s/INSERT_SHA256_HERE/$SHA256/" PKGBUILD
|
||||
|
||||
- name: Build and Generate AUR Meta
|
||||
run: |
|
||||
tar -cf - . | docker run --rm -i archlinux:latest /bin/bash -e -c "
|
||||
@@ -63,26 +65,26 @@ jobs:
|
||||
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
|
||||
chown -R builduser:builduser /workspace
|
||||
echo 'builduser ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||
|
||||
|
||||
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 >&3
|
||||
tar -cf - *.pkg.tar.zst PKGBUILD LICENSE SRCINFO.txt >&3
|
||||
" | tar -xf -
|
||||
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: release-artifacts
|
||||
path: |
|
||||
*.pkg.tar.zst
|
||||
PKGBUILD
|
||||
LICENSE
|
||||
.SRCINFO
|
||||
SRCINFO.txt
|
||||
|
||||
release:
|
||||
name: Publish
|
||||
@@ -93,7 +95,7 @@ jobs:
|
||||
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
||||
|
||||
- name: Download Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: release-artifacts
|
||||
path: .
|
||||
@@ -127,7 +129,8 @@ jobs:
|
||||
git config --global user.email "me@uyani.de"
|
||||
|
||||
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
|
||||
|
||||
git add PKGBUILD LICENSE .SRCINFO
|
||||
|
||||
Reference in New Issue
Block a user