summarylogtreecommitdiffstats
path: root/linux.preset
AgeCommit message (Collapse)Author
2019-08-25Improve PKGBUILDAlan Orth
A handful of improvements to the PKGBUILD to make it more robust and idiomatic Arch. For example: - Move PKGBUILD variables out of prepare() function - Prefix non-standard PKGBUILD variables with underscore - Add manifest and kernel pack to source files - Use SHA256 instead of MD5 for verification of source files - Let makepkg download source files instead of using curl directly in package() - Let makepkg unpack source files instead of using tar directly in package() - Use local variables in package() and build() - Add WIREGUARD-MODULE to "provides" - Add linux.preset file for generating initramfs I still don't like the use of pkgver for the Clear Linux kernel version because it breaks the Arch pkgrel logic. We cannot ship an update to 5.2.8-821 without incrementing 821. See: https://wiki.archlinux.org/index.php/PKGBUILD See: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=linux-clear PKGBUILD: Update to 5.2.9-823 (30820) PKGBUILD: Add comment about epoch Fix linux.preset PKGNAME replacement This is used for creating the initramfs with mkinitcpio: # mkinitcpio -p linux-clear-bin Use same depmod ALPM hook as linux-clear PKGBUILD: Rearrange sources Add hooks for initramfs generation, depmod, etc This makes pacman regenerate or remove the initramfs when the package is updated or removed. Also, keep a copy of the kernel in /usr/lib so that systemd can find it for hibernation. In general I want this package to be closer to the source-based linux-clear package. See: https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344 PKGBUILD: Add url and license fields As recommended by `namcap`. PKGBUILD: license needs to be an array PKGBUILD: Add comment about filenames in the Manifest PKGBUILD: Update comment for latest Clear release PKGBUILD: Use `install` instead of cp The `install` command creates intermediate directories and sets target permissions. PKGBUILD: Infer kernel version from pkgver and pkgrel Linux 5.2.9-825 from Clear Linux 30840 Add WIREGUARD-MODULE to provides I had previously done this in another version of my PKGBUILD, but it somehow got dropped. PKGBUILD: Simplify paths to hooks for sed These are symlinked into the src directory during build and package steps of makepkg. PKGBUILD: Don't cat to sed