65 lines
1.5 KiB
Bash
Executable file
65 lines
1.5 KiB
Bash
Executable file
#!/bin/sh -x
|
|
|
|
# variables
|
|
VERSION=1.9
|
|
BUILD=1
|
|
PACKAGER=cyco
|
|
|
|
TMP=/tmp
|
|
CWD=$(pwd)
|
|
|
|
PRGNAM=$(basename $CWD)
|
|
PKG=$TMP/$PACKAGER/pkg-$PRGNAM
|
|
|
|
ARCH=noarch
|
|
|
|
if [ "$ARCH" = "x86_64" ]; then
|
|
LIBDIRSUFFIX="64"
|
|
else
|
|
LIBDIRSUFFIX=""
|
|
fi
|
|
|
|
REPOSITORY=/home/cycojesus/projets/packages/repositories/$PRGNAM
|
|
PREFIX=/usr
|
|
|
|
# nettoyage préalable
|
|
rm -fr $PKG
|
|
|
|
mkdir -p $PKG$PREFIX/share/pixmaps/pidgin/emotes
|
|
|
|
# mise en place
|
|
[ ! -e $CWD/pidgin-original-$VERSION.tgz ] && wget -c http://files.andreineculau.com/projects/pidgin/original-smileys/pidgin-original-$VERSION.tgz -O $CWD/pidgin-original-$VERSION.tgz
|
|
|
|
tar -C $PKG$PREFIX/share/pixmaps/pidgin/emotes -xf $CWD/pidgin-original-$VERSION.tgz
|
|
|
|
# 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 (Original Smileys Theme for Pidgin)
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
$PRGNAM:
|
|
$PRGNAM: http://wiki.andreineculau.com/Original_Smileys_Theme_for_Pidgin
|
|
$PRGNAM:
|
|
EOF
|
|
|
|
# empaquetage
|
|
cd $PKG
|
|
makepkg -l y -c n $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD$PACKAGER.txz
|