diff --git a/linux54-tkg/PKGBUILD b/linux54-tkg/PKGBUILD index 1fca407..6aaef05 100644 --- a/linux54-tkg/PKGBUILD +++ b/linux54-tkg/PKGBUILD @@ -709,6 +709,9 @@ prepare() { # Community patches if [ -n "$_community_patches" ]; then + if [ ! -d "$_where/../../community-patches" ]; then + cd "$_where/../.." && git clone https://github.com/Frogging-Family/community-patches.git && cd "${srcdir}/linux-${_basekernel}" + fi _community_patches=($_community_patches) for _p in ${_community_patches[@]}; do ln -s "$_where"/../../community-patches/linux54-tkg/$_p "$_where"/ diff --git a/linux55-tkg/PKGBUILD b/linux55-tkg/PKGBUILD index 663bdfd..d38a683 100644 --- a/linux55-tkg/PKGBUILD +++ b/linux55-tkg/PKGBUILD @@ -761,6 +761,9 @@ prepare() { # Community patches if [ -n "$_community_patches" ]; then + if [ ! -d "$_where/../../community-patches" ]; then + cd "$_where/../.." && git clone https://github.com/Frogging-Family/community-patches.git && cd "${srcdir}/linux-${_basekernel}" + fi _community_patches=($_community_patches) for _p in ${_community_patches[@]}; do ln -s "$_where"/../../community-patches/linux55-tkg/$_p "$_where"/ diff --git a/linux56-tkg/PKGBUILD b/linux56-tkg/PKGBUILD index 691af37..772c413 100644 --- a/linux56-tkg/PKGBUILD +++ b/linux56-tkg/PKGBUILD @@ -767,6 +767,9 @@ prepare() { # Community patches if [ -n "$_community_patches" ]; then + if [ ! -d "$_where/../../community-patches" ]; then + cd "$_where/../.." && git clone https://github.com/Frogging-Family/community-patches.git && cd "${srcdir}/linux-${_basekernel}" + fi _community_patches=($_community_patches) for _p in ${_community_patches[@]}; do ln -s "$_where"/../../community-patches/linux56-tkg/$_p "$_where"/ diff --git a/linux57-rc-tkg/PKGBUILD b/linux57-rc-tkg/PKGBUILD index d78b250..6554906 100644 --- a/linux57-rc-tkg/PKGBUILD +++ b/linux57-rc-tkg/PKGBUILD @@ -755,6 +755,9 @@ prepare() { # Community patches if [ -n "$_community_patches" ]; then + if [ ! -d "$_where/../../community-patches" ]; then + cd "$_where/../.." && git clone https://github.com/Frogging-Family/community-patches.git && cd "${srcdir}/linux-${_basekernel}-${_sub}" + fi _community_patches=($_community_patches) for _p in ${_community_patches[@]}; do ln -s "$_where"/../../community-patches/linux57-tkg/$_p "$_where"/