2015-01-10 15:50:34 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
apacman --noconfirm --noedit -S --needed customizepkg-scripting
|
|
|
|
|
|
|
|
echo -n "Compiling kernel sources..."
|
|
|
|
set +e
|
|
|
|
## Uncomment below and remove manual ABS/makepkg when https://github.com/oshazard/apacman/issues/2 is fulfulled
|
2015-01-12 17:40:06 -05:00
|
|
|
#apacman --noconfirm --noedit -S --needed linux
|
2015-01-10 15:50:34 -05:00
|
|
|
|
2015-01-12 17:40:06 -05:00
|
|
|
export ABSROOT=/tmp
|
2015-01-10 15:50:34 -05:00
|
|
|
abs core/linux
|
|
|
|
|
|
|
|
cd /tmp/core/linux
|
|
|
|
customizepkg --modify
|
|
|
|
|
2015-01-12 17:40:06 -05:00
|
|
|
chown -R nobody:nobody /tmp/core/linux
|
2015-01-17 17:37:57 -05:00
|
|
|
sudo -u nobody makepkg --skipinteg
|
2015-01-10 15:50:34 -05:00
|
|
|
set -e
|
|
|
|
|
2015-01-17 17:37:57 -05:00
|
|
|
yes '' | apacman --skipinteg --noconfirm --noedit -U /tmp/core/linux/linux-*.pkg.tar.xz
|
|
|
|
|
|
|
|
#for i in $(ls -1 linux-*.pkg.tar.xz | sort);
|
|
|
|
#do
|
|
|
|
#apacman --skipinteg --noconfirm --noedit --noconfirm -U ${i}
|
|
|
|
#done
|
2015-01-12 17:40:06 -05:00
|
|
|
|
2015-01-10 15:50:34 -05:00
|
|
|
echo "Done."
|