summaryrefslogblamecommitdiff
path: root/system/easy-kernel/APKBUILD
blob: 753cff9d63b8ffcfe30d20475a600be93a77bf0a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13


                                                  

             







                                                         
                              
                                                                      
                                                                                 
                    
                  

                     




                             
                                                                              
                      
                                                 






                                           
                       





















                                                                                                                                                               
                                                                                                                                                         
                                                                                                                                              
                                                                                                                                            
                                                                                                                                               
                                                                                                                                              
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=easy-kernel
pkgver=4.14.8
pkgrel=2
pkgdesc="The Linux kernel, packaged for your convenience"
url="https://kernel.org/"
arch="all"
options="!check !dbg !strip"
license="GPL-2.0"
depends=""
makedepends="lzop openssl-dev"
install=""
subpackages="$pkgname-modules"
source="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.tar.xz
	https://mirrormaster.adelielinux.org/source/linux-4.14-mc$pkgrel.patch.xz
	config-ppc64
	config-ppc
	config-x86_64
	config-pmmx"
builddir="$srcdir/linux-4.14"

prepare() {
	default_prepare
	cd "$srcdir"
	cat linux-4.14-mc$pkgrel.patch.xz | unxz -> linux-4.14-mc$pkgrel.patch
	cd "$builddir"
	patch -Np1 <../linux-4.14-mc$pkgrel.patch
	cd "$srcdir"
	cp config-$CARCH linux-4.14/.config
	cp -pr linux-4.14 linux-src
}

build() {
	cd "$builddir"
	make LDFLAGS=""
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/boot
	make INSTALL_PATH="$pkgdir"/boot \
		INSTALL_MOD_PATH="$pkgdir" \
		install modules_install
}

modules() {
	pkgdesc="Modules / device drivers for easy-kernel"
	mkdir -p "$subpkgdir"/lib
	mv "$pkgdir"/lib/modules "$subpkgdir"/lib/
}

src() {
	pkgdesc="Kernel source code used to build THIS kernel"
	mkdir -p "$subpkgdir"/usr/src
	mv "$srcdir"/linux-src "$subpkgdir"/usr/src/linux
}
sha512sums="77e43a02d766c3d73b7e25c4aafb2e931d6b16e870510c22cef0cdb05c3acb7952b8908ebad12b10ef982c6efbe286364b1544586e715cf38390e483927904d8  linux-4.14.tar.xz
ea893dbb34129691d766cd2a80319448a99d022474878147cc90da4bf7364f747e1d2a68bc5cd70e701bccb5f5ba48d628678cd4d95afbdb9b0c128137e1c437  linux-4.14-mc2.patch.xz
15513dd39075d5b3b27adc193995ffef9d0bad2a5b128f04f8952b0b056a97e15a143f2f3b06de1c6eaa56e6034f28c528aa69786563e2bda6bf35e3182acfaa  config-ppc64
4580119dbbb8abb7cf3d433deee76264bc772f7710e75850483181f3d82e58a12e9045c663ae46a4f8633357790a8776d04826ae1f3954c556fa32ff9dade31f  config-ppc
3bf6b3764791464aff2ec2560e3e78c2854d8dec95390d4705ddeaf829bb44cce337d7fc32de6422925a8c3f1b620ee4f8e87eab92667ed35ead85b782dfe2c5  config-x86_64
34baf5fb4a75bd9aa196313fa38ccf7d591b581d47a61be50b61e88ddaecf0f25992f1579e6fe73c73e1e6b11d7beabf05e6d778cc0de09b048252bedc271bc2  config-pmmx"