diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..ff02d63 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +aur/msdl-bin/PKGBUILD text eol=lf +aur/msdl-bin/.SRCINFO text eol=lf diff --git a/aur/msdl-bin/.SRCINFO b/aur/msdl-bin/.SRCINFO new file mode 100644 index 0000000..32f6de2 --- /dev/null +++ b/aur/msdl-bin/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = msdl-bin + pkgdesc = Download Windows ISO files directly from Microsoft's servers + pkgver = 0.3.5 + pkgrel = 1 + url = https://msdl.tech-latest.com + arch = x86_64 + arch = aarch64 + license = MIT + provides = msdl + conflicts = msdl + source_x86_64 = msdl-bin-0.3.5-x86_64::https://github.com/starkSV/windows-iso-downloader/releases/download/cli%2Fv0.3.5/msdl-linux-amd64 + sha256sums_x86_64 = dfb0648acd6caa79d597839bb9803c979446a2d77f90447273ee5003d8857c9d + source_aarch64 = msdl-bin-0.3.5-aarch64::https://github.com/starkSV/windows-iso-downloader/releases/download/cli%2Fv0.3.5/msdl-linux-arm64 + sha256sums_aarch64 = 933beb694b3e59fc84cdccfb5cb3dfe48db3274046df88390cf8ee32070f4088 + +pkgname = msdl-bin diff --git a/aur/msdl-bin/README.md b/aur/msdl-bin/README.md index f362553..a1aaad4 100644 --- a/aur/msdl-bin/README.md +++ b/aur/msdl-bin/README.md @@ -1,17 +1,24 @@ # msdl-bin (AUR) -`PKGBUILD` for the [msdl-bin](https://aur.archlinux.org/packages/msdl-bin) AUR package, tracked here so version bumps have the same history/review as the winget manifests. +`PKGBUILD` and `.SRCINFO` for the [msdl-bin](https://aur.archlinux.org/packages/msdl-bin) AUR package, tracked here so version bumps have the same history/review as the winget manifests. -This file is not auto-published — after editing it here, push it to the AUR repo manually from an Arch (or Arch container) environment: +`.SRCINFO` is generated with the real `makepkg` tool (via an ephemeral `archlinux` Docker container — no VM or native Arch install needed) whenever `PKGBUILD` changes: + +```bash +docker run --rm -v "$(pwd)":/pkg -w /pkg archlinux:latest bash -c " + useradd -m builder && chown -R builder:builder /pkg && + pacman -Sy --noconfirm --needed base-devel && + su builder -c 'makepkg --printsrcinfo' > .SRCINFO +" +``` + +Publishing (requires an AUR account with an SSH key registered at aur.archlinux.org — this step can't be automated on someone else's behalf): ```bash git clone ssh://aur@aur.archlinux.org/msdl-bin.git -cp PKGBUILD msdl-bin/ +cp PKGBUILD .SRCINFO msdl-bin/ cd msdl-bin -makepkg --printsrcinfo > .SRCINFO git add PKGBUILD .SRCINFO git commit -m "Update to " git push ``` - -Requires an AUR account with an SSH key registered at aur.archlinux.org.