mirror of
https://bitbucket.org/gwenhael/pine64-slackware.git
synced 2024-12-27 09:58:53 +01:00
62 lines
1.4 KiB
Text
62 lines
1.4 KiB
Text
|
#!/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
|
||
|
wget -c https://www.stdin.xyz/downloads/people/longsleep/pine64-images/linux/linux-pine64-latest.tar.xz
|
||
|
|
||
|
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
|