55 lines
881 B
Text
55 lines
881 B
Text
|
#!/bin/sh
|
||
|
set -x
|
||
|
|
||
|
CWD=$(pwd)
|
||
|
|
||
|
PKGNAM=$(basename $CWD)
|
||
|
VERSION=${VERSION:-0}
|
||
|
|
||
|
BUILD=${BUILD:-1}
|
||
|
|
||
|
ARCH=noarch
|
||
|
|
||
|
TAG=cyco
|
||
|
TMP=${TMP:-/tmp/$TAG}
|
||
|
PKG=$TMP/pkg-$PKGNAM
|
||
|
OUTPUT=${OUTPUT:-/tmp}
|
||
|
|
||
|
# Cleaning
|
||
|
rm -fr $TMP/$PKGNAM-$VERSION
|
||
|
rm -fr $PKG
|
||
|
|
||
|
mkdir -p $PKG/
|
||
|
|
||
|
# $CWD/config is pre-configured alread (permissions and all)
|
||
|
cp -a $CWD/config/etc $PKG/
|
||
|
|
||
|
# Activate some non-default fonts adjustements
|
||
|
(cd $PKG/etc/fonts/conf.d
|
||
|
ln -s ../conf.avail/35-cycojesus.conf
|
||
|
ln -s ../conf.avail/10-sub-pixel-rgb.conf
|
||
|
ln -s ../conf.avail/10-autohint.conf
|
||
|
)
|
||
|
|
||
|
cd $PKG
|
||
|
# Cleaning
|
||
|
chown -R root:root .
|
||
|
|
||
|
# Packaging
|
||
|
mkdir install
|
||
|
cat <<EOF > install/slack-desc
|
||
|
$PKGNAM: $PKGNAM (Cycojesus' post-install configuration)
|
||
|
$PKGNAM:
|
||
|
$PKGNAM:
|
||
|
$PKGNAM:
|
||
|
$PKGNAM:
|
||
|
$PKGNAM:
|
||
|
$PKGNAM:
|
||
|
$PKGNAM:
|
||
|
$PKGNAM:
|
||
|
$PKGNAM:
|
||
|
$PKGNAM:
|
||
|
EOF
|
||
|
|
||
|
makepkg -l y -c n $OUTPUT/$PKGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|