slackbuilds/a/UNUSED/aaa_cycojesus/aaa_cycojesus.SlackBuild
Gwenhael Le Moine 0da671b6e8 big spring cleanup, putting aside currently unused scripts
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2013-03-25 22:41:45 +01:00

54 lines
882 B
Bash
Executable file

#!/bin/sh
set -x
CWD=$(pwd)
PKGNAM=$(basename $CWD)
VERSION=${VERSION:-b}
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