2016-07-17 17:55:12 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# variables
|
|
|
|
CWD=$(pwd)
|
|
|
|
|
|
|
|
BUILD=${BUILD:-1}
|
|
|
|
|
|
|
|
TAG=cyco
|
|
|
|
TMP=${TMP:-/tmp/$TAG}
|
|
|
|
OUTPUT=${OUTPUT:-/tmp}
|
|
|
|
|
|
|
|
PRGNAM=${PRGNAM:-kernel}
|
|
|
|
PKG=${PKG:-$TMP/pkg-$PRGNAM}
|
|
|
|
|
|
|
|
ARCH=${ARCH:-$(uname -m)}
|
|
|
|
|
|
|
|
PREFIX=${PREFIX:-/usr}
|
|
|
|
|
|
|
|
# nettoyage préalable
|
|
|
|
rm -fr $PKG
|
|
|
|
|
|
|
|
# mise en place
|
|
|
|
mkdir -p $PKG/
|
|
|
|
|
|
|
|
cd $PKG
|
2016-07-17 18:02:38 +02:00
|
|
|
wget --no-check-certificate -c https://www.stdin.xyz/downloads/people/longsleep/pine64-images/linux/linux-pine64-latest.tar.xz
|
2016-07-17 17:55:12 +02:00
|
|
|
|
|
|
|
tar xvf linux-pine64-latest.tar.xz && rm linux-pine64-latest.tar.xz
|
|
|
|
cp -a boot bootenv
|
|
|
|
|
|
|
|
VERSION=$(ls lib/modules | tr - _)
|
|
|
|
# correction
|
|
|
|
cd $PKG
|
|
|
|
chown -R root:root *
|
|
|
|
|
|
|
|
# embaumement
|
|
|
|
mkdir -p $PKG/install
|
|
|
|
cat <<EOF > $PKG/install/slack-desc
|
|
|
|
# HOW TO EDIT THIS FILE:
|
|
|
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
|
|
|
# up the first '|' above the ':' following the base package name, and the '|'
|
|
|
|
# on the right side marks the last column you can put a character in. You must
|
|
|
|
# make exactly 11 lines for the formatting to be correct. It's also
|
|
|
|
# customary to leave one space after the ':'.
|
|
|
|
|
|
|
|
|-----handy-ruler------------------------------------------------------|
|
|
|
|
$PRGNAM: $PRGNAM (Longsleep's Linux kernel for Pine64)
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM: https://www.stdin.xyz/downloads/people/longsleep/pine64-images/linux/
|
|
|
|
$PRGNAM:
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# empaquetage
|
|
|
|
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|