summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2019-05-06 19:52:59 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2019-05-06 19:52:59 -0700
commited61bd5edb37155a0c68ce06def19827a8cdbbb2 (patch)
tree74c257d34e290712e5230a2c2e1cfe9936f565da
parentUpdated to 5.1.0 (diff)
downloadlinux-ed61bd5edb37155a0c68ce06def19827a8cdbbb2.tar.xz
Reorganize PKGBUILD
-rw-r--r--PKGBUILD20
1 files changed, 11 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ab16bf7..553f47e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -62,9 +62,11 @@ _kernelname=${pkgbase#linux}
prepare() {
cd $_srcname
-# # add upstream patch
-# msg2 "Applying upstream patch"
-# patch -Np1 < ../patch-${_majver}-${_pkgver}
+ # add upstream patch
+# if [ "$_minver" != "0" ]; then
+# msg2 "Applying upstream patch"
+# patch -Np1 < ../patch-${_majver}-${_pkgver}
+# fi
# Hotfixes
# msg2 "Applying hotfixes"
@@ -94,11 +96,11 @@ prepare() {
msg2 "Setting config..."
# we are in src/linux-x.yy.zz, looking for a config next to the pkgbuild
- #if [ -f ${SRCDEST}/config.previous ]; then
- # cp ${SRCDEST}/config.previous .config
- #else
+# if [ -f ${SRCDEST}/config.previous ]; then
+# cp ${SRCDEST}/config.previous .config
+# else
cp ../config.x86_64 .config
- #fi
+# fi
make olddefconfig
@@ -121,8 +123,8 @@ prepare() {
cat ../version.temp | tr -d "\n" > ../version
# back up the config
- #msg2 "Backing up config..."
- #cp .config ${SRCDEST}/config.previous
+# msg2 "Backing up config..."
+# cp .config ${SRCDEST}/config.previous
msg2 "Prepared %s version %s" "$pkgbase" "$(<../version)"
}