aboutsummarylogtreecommitdiffstats
path: root/UPDATING
blob: 0eae9e20788cddce64eb4318dc48f4bcaf28b828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash

# How to update this package!

# Don't actually run this as a shell script - it's part pseudocode
exit

# Check https://projects.archlinux.org/svntogit/packages.git/log/trunk?h=packages/linux
# Bump pkgver, pkgrel
# Sync any new PKGBUILD logic, important patches, configs or other changes

# Cleans things up
makepkg -oecd

# uncomment "return 1"
sed -i 's/^[#]*\s*\(return\s*1\)$/\1/ig' PKGBUILD

# sources are ready
makepkg -cd

# will probably fail for hashes, reset hashes & redo

# may prompt for oldconfig

# do a checkup
cd src/linux-${pkgver}
make nconfig
# save as .config, then quit

# last check
diff ../../config.x86_64 .config

# move it back
cd ../..
cp src/linux-${pkgver}/.config config.x86_64

# update md5s
# re-comment "return 1"
sed -i 's/^[#]*\s*\(return\s*1\)$/#  \1/ig' PKGBUILD