slackbuilds/UNUSED/a/aaa_cycojesus/SlackBuild

56 lines
932 B
Text
Raw Normal View History

2011-09-03 23:26:36 +02:00
#!/bin/sh
set -x
CWD=$(pwd)
PKGNAM=$(basename $CWD)
VERSION=${VERSION:-b}
2011-09-03 23:26:36 +02:00
BUILD=${BUILD:-1}
ARCH=noarch
2020-06-25 11:23:11 +02:00
TAG=gwh
2011-09-03 23:26:36 +02:00
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
2020-06-25 11:23:11 +02:00
ln -s ../conf.avail/35-gwh.conf
2011-09-03 23:26:36 +02:00
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:
2011-09-03 23:27:06 +02:00
$PKGNAM:
2011-09-03 23:26:36 +02:00
$PKGNAM:
$PKGNAM:
$PKGNAM:
$PKGNAM:
$PKGNAM:
$PKGNAM:
$PKGNAM:
EOF
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
2020-07-12 09:22:26 +02:00
/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz