blob: 495102bb84bcf4c44a617378aae80c85ef38167c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
set -eu
cd "$(dirname "$0")"
VERSION="$(curl -sSf https://www.kernel.org/releases.json | jq -r '.releases[].version' | grep '^4\.4\.')"
HASH="$(curl -sSf https://www.kernel.org/pub/linux/kernel/v4.x/sha256sums.asc | grep "patch-${VERSION}.xz" | cut -d' ' -f1)"
sed -i "s/pkgver=.*/pkgver=${VERSION}/" PKGBUILD
sed -i "s/.* # patch$/ '$HASH' # patch/" PKGBUILD
mksrcinfo
|