From ed61bd5edb37155a0c68ce06def19827a8cdbbb2 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Mon, 6 May 2019 19:52:59 -0700 Subject: Reorganize PKGBUILD --- PKGBUILD | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'PKGBUILD') 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)" } -- cgit v1.2.1