build.sh: Add support for linux pkgrel versioning

It was not possible to indicate the PKGREL version of the linux kernel package
within the script. Instead the script was using the archzfs PKGREL for
dependency versions, or 3.10.6-1 instead of 3.10.6-2.
pull/14/head
Jesus Alvarez 12 years ago
parent 81fa0e6443
commit 553d300e31
  1. 19
      build.sh

@ -187,24 +187,31 @@ update_pkgbuilds() {
# echo "SED_CUR_LIN_VER: $SED_CUR_LIN_VER" # echo "SED_CUR_LIN_VER: $SED_CUR_LIN_VER"
# echo "SED_CUR_ZFS_VER: $SED_CUR_ZFS_VER" # echo "SED_CUR_ZFS_VER: $SED_CUR_ZFS_VER"
# Replace the dependency versions of the archzfs packages # Change the top level PKGREL
find . -iname "PKGBUILD" -print | xargs sed -i \
"s/_$SED_CUR_LIN_VER-$CUR_PKGREL_VER/_$LINUX_VER-$PKGREL/g"
# Replace the PKGREL
find . -iname "PKGBUILD" -print | xargs sed -i \ find . -iname "PKGBUILD" -print | xargs sed -i \
"s/pkgrel=$CUR_PKGREL_VER/pkgrel=$PKGREL/g" "s/pkgrel=$CUR_PKGREL_VER/pkgrel=$PKGREL/g"
# Replace the ZFS version # Replace the ZFS version
find . -iname "PKGBUILD" -print | xargs sed -i "s/$SED_CUR_ZFS_VER/$ZFS_VER/g" find . -iname "PKGBUILD" -print | xargs sed -i "s/$SED_CUR_ZFS_VER/$ZFS_VER/g"
# Replace the linux version in the top level VERSION
find . -iname "PKGBUILD" -print | xargs sed -i \
"s/_$SED_CUR_LIN_VER/_$LINUX_VER/g"
# Replace the linux version in the package dependencies (notice the _).
# This could probably be merged with the sed below, but I am lazy.
find . -iname "PKGBUILD" -print | xargs sed -i \
"s/_$SED_CUR_LIN_VER-$CUR_LINUX_PKGREL/_$LINUX_VER-$LINUX_PKGREL/g"
# Replace the linux version # Replace the linux version
find . -iname "PKGBUILD" -print | xargs sed -i "s/$SED_CUR_LIN_VER/$LINUX_VER/g" find . -iname "PKGBUILD" -print | xargs sed -i \
"s/$SED_CUR_LIN_VER-$CUR_LINUX_PKGREL/$LINUX_VER-$LINUX_PKGREL/g"
# Update the sums of the files # Update the sums of the files
for PKG in $PKG_LIST; do for PKG in $PKG_LIST; do
updpkgsums $PKG/PKGBUILD updpkgsums $PKG/PKGBUILD
done done
} }
push_sources_to_aur() { push_sources_to_aur() {

Loading…
Cancel
Save