add l/libmodplug/ (dependency for löve)
Signed-off-by: Gwenhael Le Moine <cycojesus@darkstar.example.net>
This commit is contained in:
parent
47d6adc512
commit
ae6cd21b6e
3 changed files with 97 additions and 0 deletions
BIN
l/libmodplug/libmodplug-0.8.7.tar..bkp
Normal file
BIN
l/libmodplug/libmodplug-0.8.7.tar..bkp
Normal file
Binary file not shown.
BIN
l/libmodplug/libmodplug-0.8.7.tar.gz
Normal file
BIN
l/libmodplug/libmodplug-0.8.7.tar.gz
Normal file
Binary file not shown.
97
l/libmodplug/libmodplug.SlackBuild
Executable file
97
l/libmodplug/libmodplug.SlackBuild
Executable file
|
@ -0,0 +1,97 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
PRGNAM=libmodplug
|
||||
VERSION=0.8.7
|
||||
|
||||
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)")
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=/tmp
|
||||
PKG=$TMP/$PACKAGER/pkg-$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
)
|
||||
|
||||
# Fetching sources
|
||||
( cd $TMP
|
||||
[ -e $CWD/$PRGNAM-$VERSION.tar.?z* ] \
|
||||
&& tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
[ ! -e $PRGNAM-$VERSION ] \
|
||||
&& wget -c http://ftp.de.debian.org/debian/pool/main/libm/$PRGNAM/${PRGNAM}_$VERSION.orig.tar.gz -O $CWD/$PRGNAM-$VERSION.tar.gz \
|
||||
&& tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
)
|
||||
|
||||
# Preparation
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
)
|
||||
|
||||
# Configuration
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--libdir=$PREFIX/lib64
|
||||
)
|
||||
|
||||
# Building
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make
|
||||
)
|
||||
|
||||
# Installation
|
||||
mkdir -p $PKG$PREFIX/{bin,lib$LIBSUFFIX/$PRGNAM,man/man1}
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make install DESTDIR=$PKG
|
||||
)
|
||||
|
||||
# Cleaning
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find ./man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
)
|
||||
|
||||
# Packaging
|
||||
( cd $PKG
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM ()
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://packages.debian.org/source/sid/libmodplug
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
makepkg -l y -c n $TMP/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$PACKAGER.txz
|
||||
)
|
||||
|
Loading…
Reference in a new issue