summaryrefslogtreecommitdiff
path: root/libre/linux-libre-pck/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/linux-libre-pck/PKGBUILD')
-rw-r--r--libre/linux-libre-pck/PKGBUILD56
1 files changed, 24 insertions, 32 deletions
diff --git a/libre/linux-libre-pck/PKGBUILD b/libre/linux-libre-pck/PKGBUILD
index 7e9fa35b1..9692e901a 100644
--- a/libre/linux-libre-pck/PKGBUILD
+++ b/libre/linux-libre-pck/PKGBUILD
@@ -10,8 +10,8 @@
# Based on linux-zen package
pkgbase=linux-libre-pck
-_srcbasever=5.0-gnu
-_srcver=5.0.2-gnu
+_srcbasever=5.1-gnu
+_srcver=5.1.6-gnu
_pckver=pck1
_replacesarchkernel=('linux-zen')
@@ -25,32 +25,30 @@ pkgrel=1
arch=(i686 x86_64 armv7h)
url='https://wiki.parabola.nu/PCK'
license=(GPL2)
-makedepends=(xmlto kmod inetutils bc libelf python-sphinx graphviz)
+makedepends=(xmlto kmod inetutils bc libelf)
options=('!strip')
source=(
"https://linux-libre.fsfla.org/pub/linux-libre/releases/$_srcbasever/linux-libre-$_srcbasever.tar.xz"{,.sign}
"https://linux-libre.fsfla.org/pub/linux-libre/releases/$_srcver/patch-$_srcbasever-$_srcver.xz"{,.sign}
"https://repo.parabola.nu/other/pck/patches/$_srcver/patch-$_srcver-$_pckver.patch"{,.sig}
- # the main kernel config files
- config.i686 config.x86_64 config.armv7h
- # pacman hooks for depmod and initramfs regeneration
- 60-linux.hook 90-linux.hook
- # standard config files for mkinitcpio ramdisk
- linux.preset
+ config.i686 config.x86_64 config.armv7h # the main kernel config files
+ 60-linux.hook # pacman hook for depmod
+ 90-linux.hook # pacman hook for initramfs regeneration
+ linux.preset # standard config files for mkinitcpio ramdisk
)
validpgpkeys=(
'474402C8C582DAFBE389C427BCB7CF877E7D47A7' # Alexandre Oliva
'6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78' # David P.
)
-sha512sums=('56b8e77eb445c92c3e0ec0dc45fa5fb09641cad18003b79991652b83cf1d96cc1651750dfa9eec15652108a1b8aff1781c4f8ec5f92784b8542e59e0605922d9'
+sha512sums=('42510bffa69746e0f919fecef5a23da4adb2473239ee67730fa1eb2340256fb4618c6acab439c01ae781df768a2e1ac4b76ad80fe0e4a432eaceb7f01f275439'
'SKIP'
- '2eee919805705709ef5493e0a0e1f7baeb71fed20da7ee06c09546c8976046568447422fc4f0b70178a645840a5a3d46946b4573ea42c025182916cb13bb849a'
+ '7c860911baae3c94743981980f93928bde01679f5f8bc3c91f19eb23d1fb1cc590cc4dbb421c1ae9165dab9d1c697e19926fc265a4a2fcfdaaa262cb2b025455'
'SKIP'
- '52693b9c225023a4f084088ca8ba8e4389ec5a8aa002cb4c77ac8b3799b8d9a4192a850c1a513e45d98620a1be5bef3bae36bfdd30cdf9649e11d3fdd031327f'
+ 'c9f80da13d1e1db134da0fcef47b341574e1fbcca6f126aa1523654062989022eb9a7d4c063a6955868708aad1fca205edfe65c2bcff0dcece14ae68022bae6d'
'SKIP'
- 'cd8394a9e7381df204684d486ba99ce66ccb2b3d6ac60f59afabb49d8f6aaea2949ed22da5dd95b7deedc696958cc32d3371df370ec3bfe4919bb94a5145e637'
- '5f1ea1b82547de48e538cd5656d1b75b55800088afc1a35e136532ff96f72610ebd998f079275efbc7cf0a4f0c25fdd364024395dbcfa72d0edeefd974a89530'
- '430c353a49ef8b519eb51d58d25957e0b0251de8634254f9dc3ce2b2d4492cac6043fe1a90fe531e122c1de8f012c7c5211c2a680cacc6e456bf29e1bb059a90'
+ '8ce55bd4e47a98f5ef8947643ba6ca6a3d88ae6f283754b45c4a5f4cd7b33e3a4ffb5d0fdae5bd41f6baa4d1fa78dbf9c40d6799af32a90252cf909d9df0a026'
+ '1017b0baa11f6689ff7622be07a2bef3eb9b286950d6ffdf42d742edf03d1a6cc998eb501b51d138d609f367eb41aa7397422b6159be8bd34f0d151761aa2ac7'
+ '1d052a805abf7c6b018f1455dd19a349bc756e4de7b5a15be6802e08320ee013f191527be2ff7901a91b90bfbd910b6086b25dba9942c6423baaee44e4bc5a6b'
'7ad5be75ee422dda3b80edd2eb614d8a9181e2c8228cd68b3881e2fb95953bf2dea6cbe7900ce1013c9de89b2802574b7b24869fc5d7a95d3cc3112c4d27063a'
'2718b58dbbb15063bacb2bde6489e5b3c59afac4c0e0435b97fe720d42c711b6bcba926f67a8687878bd51373c9cf3adb1915a11666d79ccb220bf36e0788ab7'
'2dc6b0ba8f7dbf19d2446c5c5f1823587de89f4e28e9595937dd51a87755099656f2acec50e3e2546ea633ad1bfd1c722e0c2b91eef1d609103d8abdc0a7cbaf')
@@ -73,14 +71,20 @@ prepare() {
patch -p1 -i ../patch-$_srcbasever-$_srcver
fi
- # add PCK patch
- patch -p1 -i ../patch-$_srcver-$_pckver.patch
-
msg2 "Setting version..."
scripts/setlocalversion --save-scmversion
echo "-$pkgrel" > localversion.10-pkgrel
echo "$_kernelname" > localversion.20-pkgname
+ local src
+ for src in "${source[@]}"; do
+ src="${src%%::*}"
+ src="${src##*/}"
+ [[ $src = *.patch ]] || continue
+ msg2 "Applying patch $src..."
+ patch -Np1 < "../$src"
+ done
+
msg2 "Setting config..."
cp ../config.$CARCH .config
make olddefconfig
@@ -92,9 +96,9 @@ prepare() {
build() {
cd $_srcname
if [ "$CARCH" = "armv7h" ]; then
- make zImage modules dtbs htmldocs
+ make zImage modules dtbs
elif [ "$CARCH" = "x86_64" ] || [ "$CARCH" = "i686" ]; then
- make bzImage modules htmldocs
+ make bzImage modules
fi
}
@@ -288,18 +292,6 @@ _package-docs() {
mkdir -p "$builddir"
cp -t "$builddir" -a Documentation
- msg2 "Removing doctrees..."
- rm -r "$builddir/Documentation/output/.doctrees"
-
- msg2 "Moving HTML docs..."
- local src dst
- while read -rd '' src; do
- dst="$builddir/Documentation/${src#$builddir/Documentation/output/}"
- mkdir -p "${dst%/*}"
- mv "$src" "$dst"
- rmdir -p --ignore-fail-on-non-empty "${src%/*}"
- done < <(find "$builddir/Documentation/output" -type f -print0)
-
msg2 "Adding symlink..."
mkdir -p "$pkgdir/usr/share/doc"
ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase"