talimat 516 B

12345678910111213141516171819202122232425262728
  1. # Description: uzun donem kararli kernel surumu kaynak kodu
  2. # URL: http://www.kernel.org
  3. # Packagers: milisarge
  4. name=kernel-lts-src
  5. version=4.4.27
  6. release=1
  7. _version=${version:0:3}
  8. source=(\
  9. http://www.kernel.org/pub/linux/kernel/v4.x/linux-${_version}.tar.xz
  10. https://www.kernel.org/pub/linux/kernel/v4.x/patch-$version.xz)
  11. build(){
  12. cd linux-${_version}
  13. if [ -f $SRC/patch-$version.xz ]; then
  14. xz -d -c $SRC/patch-$version.xz | patch -Np1
  15. fi
  16. mkdir -p $PKG/usr/src
  17. mv $SRC/linux-${_version} $PKG/usr/src/
  18. }