mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
add as dependency of lgi
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
parent
d6b75f0a72
commit
de3fe6894e
1 changed files with 82 additions and 0 deletions
82
l/gobject-introspection/gobject-introspection.SlackBuild
Executable file
82
l/gobject-introspection/gobject-introspection.SlackBuild
Executable file
|
@ -0,0 +1,82 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
# default settings
|
||||
PRGNAM=$(basename $CWD)
|
||||
ARCH=$(uname -m)
|
||||
VERSION=${VERSION:-$(date +%Y.%m.%d_%H.%M)}
|
||||
BUILD=1
|
||||
|
||||
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
DOCS="ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO"
|
||||
|
||||
rm -rf $PKG $TMP/$PRGNAM-$VERSION
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
|
||||
if [ -e $CWD/$PRGNAM-$VERSION.tar.xz ] ; then
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
|
||||
else
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ] ; then
|
||||
git clone git://git.gnome.org/gobject-introspection $REPOSITORIES/$PRGNAM
|
||||
else
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
cp -R $REPOSITORIES/$PRGNAM $PRGNAM-$VERSION
|
||||
fi
|
||||
cd $PRGNAM-$VERSION
|
||||
|
||||
./autogen.sh
|
||||
LIBS=-lX11 ./configure \
|
||||
--libdir=/usr/lib$( [ $ARCH = "x86_64" ] && echo 64 ) \
|
||||
--mandir=/usr/man \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM/
|
||||
cp $DOCS $PKG/usr/doc/$PRGNAM/
|
||||
|
||||
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
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
mkdir -p install
|
||||
cat << EOF > 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 ()
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: https://live.gnome.org/GObjectIntrospection
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root $PKG
|
||||
|
||||
makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
Loading…
Reference in a new issue