Merge branch 'master' of github.com:gwenhael-le-moine/slackbuilds
This commit is contained in:
commit
317f8e8d58
190 changed files with 637 additions and 259 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -44,3 +44,5 @@ xap/st/patches/st-vertcenter*
|
||||||
/ap/hledger-bin/*.md.*
|
/ap/hledger-bin/*.md.*
|
||||||
/xap/x49gp/newrplfw.bin
|
/xap/x49gp/newrplfw.bin
|
||||||
/d/crystal/completion.zsh
|
/d/crystal/completion.zsh
|
||||||
|
/wayland/sway/patches/*.previous
|
||||||
|
/d/crystal-lang-bin/completion.zsh
|
||||||
|
|
|
@ -44,4 +44,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# Written by Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
|
# Written by Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
|
||||||
|
|
||||||
PRGNAM=npm2tgz
|
PRGNAM=npm2tgz
|
||||||
VERSION=${VERSION:-1.3.5}
|
VERSION=${VERSION:-1.3.6}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -42,4 +42,4 @@ mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="npm2tgz"
|
PRGNAM="npm2tgz"
|
||||||
VERSION="1.3.5"
|
VERSION="1.3.6"
|
||||||
HOMEPAGE="https://github.com/cycojesus/npm2tgz"
|
HOMEPAGE="https://github.com/gwenhael-le-moine/npm2tgz"
|
||||||
DOWNLOAD="https://github.com/cycojesus/npm2tgz/archive/1.3.5/npm2tgz-1.3.5.tar.gz"
|
DOWNLOAD="https://github.com/gwenhael-le-moine/npm2tgz/archive/1.3.6/npm2tgz-1.3.6.tar.gz"
|
||||||
MD5SUM="a89b659eae1190f62717c21211e6833e"
|
MD5SUM="933ddb500eb234056ce69d8a5bed8675"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="nodejs"
|
REQUIRES="nodejs"
|
||||||
|
|
|
@ -65,4 +65,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -31,16 +31,17 @@ else
|
||||||
if [ "$BRANCH" == "stable" ]; then
|
if [ "$BRANCH" == "stable" ]; then
|
||||||
SRC_URL="https://cdn.kernel.org/pub/linux/kernel/v$(echo "$VERSION" | cut -d. -f1).x"
|
SRC_URL="https://cdn.kernel.org/pub/linux/kernel/v$(echo "$VERSION" | cut -d. -f1).x"
|
||||||
else
|
else
|
||||||
SRC_URL="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot"
|
SRC_URL="https://git.kernel.org/torvalds/t"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -e "$CWD"/linux-"$VERSION".tar.xz ] && wget -c "$SRC_URL/linux-$VERSION.tar.xz" -O "$CWD/linux-$VERSION.tar.xz"
|
[ ! -e "$CWD"/linux-"$VERSION".tar.gz ] && wget -c "$SRC_URL/linux-$VERSION.tar.gz" -O "$CWD/linux-$VERSION.tar.gz"
|
||||||
tar xf "$CWD/linux-$VERSION.tar.xz" -C "$PKG/usr/src/"
|
tar xf "$CWD/linux-$VERSION.tar.gz" -C "$PKG/usr/src/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$PKG/usr/src/" || exit 1
|
cd "$PKG/usr/src/" || exit 1
|
||||||
ln -s "linux-$VERSION" linux
|
mv "linux-$VERSION" "linux-${VERSION}-gwh"
|
||||||
cd "linux-$VERSION"
|
#ln -s "linux-$VERSION" linux
|
||||||
|
cd "linux-${VERSION}-gwh"
|
||||||
|
|
||||||
if [ -n "$CONFIG" ] && [ -e "$CONFIG" ]; then
|
if [ -n "$CONFIG" ] && [ -e "$CONFIG" ]; then
|
||||||
cat "$CONFIG" > .config
|
cat "$CONFIG" > .config
|
||||||
|
@ -132,4 +133,4 @@ EOF
|
||||||
|
|
||||||
cd "$PKG" || exit 1
|
cd "$PKG" || exit 1
|
||||||
rm -f "$PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la"
|
rm -f "$PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la"
|
||||||
/sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-$(echo "$VERSION" | tr - _)-$ARCH-$BUILD$TAG.txz"
|
/sbin/makepkg --linkadd y --prepend --chown n "$OUTPUT/$PRGNAM-$(echo "$VERSION" | tr - _)-$ARCH-$BUILD$TAG.txz"
|
||||||
|
|
|
@ -89,4 +89,4 @@ EOF
|
||||||
# empaquetage
|
# empaquetage
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')_${KERNEL_VERSION}-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')_${KERNEL_VERSION}-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -66,4 +66,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -93,4 +93,4 @@ $PRGNAM:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -64,4 +64,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -82,4 +82,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -72,4 +72,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -25,7 +25,7 @@ mkdir -p $REPOSITORY
|
||||||
rm -fr $PKG
|
rm -fr $PKG
|
||||||
|
|
||||||
mkdir -p $PKG$PREFIX/bin
|
mkdir -p $PKG$PREFIX/bin
|
||||||
cp $REPOSITORY/conty${EDITION}-${VERSION}.sh $PKG$PREFIX/bin/${PRGNAM}
|
cp $REPOSITORY/conty${EDITION}-${VERSION}.sh $PKG$PREFIX/bin/conty
|
||||||
|
|
||||||
cd $PKG$PREFIX/bin/
|
cd $PKG$PREFIX/bin/
|
||||||
cat <<EOF > steam
|
cat <<EOF > steam
|
||||||
|
@ -46,7 +46,7 @@ Name=Steam
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
for prg in wine winetricks lutris playonlinux4; do
|
for prg in wine winetricks lutris playonlinux4; do
|
||||||
ln -s ${PRGNAM} $prg
|
ln -s conty $prg
|
||||||
cat <<EOF > $PKG$PREFIX/share/applications/$prg.desktop
|
cat <<EOF > $PKG$PREFIX/share/applications/$prg.desktop
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
Encoding=UTF-8
|
||||||
|
@ -60,21 +60,8 @@ done
|
||||||
|
|
||||||
chmod +x $PKG$PREFIX/bin/*
|
chmod +x $PKG$PREFIX/bin/*
|
||||||
|
|
||||||
( cd $PKG
|
|
||||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
|
||||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
|
||||||
)
|
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat <<EOF > $PKG/install/slack-desc
|
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--------------------------------------------------------|
|
|-----handy-ruler--------------------------------------------------------|
|
||||||
$PRGNAM: $PRGNAM (Easy to use non-root container packed into a single executable)
|
$PRGNAM: $PRGNAM (Easy to use non-root container packed into a single executable)
|
||||||
$PRGNAM:
|
$PRGNAM:
|
||||||
|
@ -90,6 +77,4 @@ $PRGNAM:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION${EDITION}-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION${EDITION}-$ARCH-$BUILD$TAG.txz
|
|
||||||
|
|
|
@ -121,4 +121,4 @@ EOF
|
||||||
cd "$PKG" || exit 1
|
cd "$PKG" || exit 1
|
||||||
rm -f "$PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la"
|
rm -f "$PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la"
|
||||||
|
|
||||||
/sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-$VERSION${EDITION}-$ARCH-$BUILD$TAG.txz"
|
/sbin/makepkg --linkadd y --chown n --prepend "$OUTPUT/$PRGNAM-$VERSION${EDITION}-$ARCH-$BUILD$TAG.txz"
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -54,4 +54,4 @@ EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr - .)-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | tr - .)-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -79,4 +79,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -82,4 +82,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -83,4 +83,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -70,4 +70,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -81,4 +81,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f "$PKG"/{,usr/}lib"$(uname -m | grep -o 64)"/*.la
|
rm -f "$PKG"/{,usr/}lib"$(uname -m | grep -o 64)"/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/"$PRGNAM"-"$VERSION"-"$ARCH"-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/"$PRGNAM"-"$VERSION"-"$ARCH"-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -85,4 +85,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -122,4 +122,4 @@ EOF
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
|
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -68,4 +68,4 @@ EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n ${OUTPUT}/${PRGNAM}-$(echo ${VERSION} | tr - _)-${ARCH}-${BUILD}${TAG}.txz
|
/sbin/makepkg --linkadd y --chown n --prepend ${OUTPUT}/${PRGNAM}-$(echo ${VERSION} | tr - _)-${ARCH}-${BUILD}${TAG}.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -81,4 +81,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -72,4 +72,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -73,4 +73,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -82,4 +82,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -129,4 +129,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
91
ap/jj/SlackBuild
Executable file
91
ap/jj/SlackBuild
Executable file
|
@ -0,0 +1,91 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# variables
|
||||||
|
GITHUB_REPO=martinvonz/jj
|
||||||
|
VERSION=${VERSION:-latest}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
|
||||||
|
TAG=gwh
|
||||||
|
TMP=/tmp/$TAG
|
||||||
|
CWD=$(pwd)
|
||||||
|
|
||||||
|
PRGNAM=$(basename $CWD)
|
||||||
|
PKG=$TMP/pkg-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
ARCH=${ARCH:-$(uname -m)}
|
||||||
|
|
||||||
|
REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
|
||||||
|
PREFIX=${PREFIX:-/usr}
|
||||||
|
|
||||||
|
# nettoyage préalable
|
||||||
|
rm -fr $PKG $TMP/$PRGNAM
|
||||||
|
|
||||||
|
mkdir -p $PKG
|
||||||
|
|
||||||
|
# mise en place
|
||||||
|
cd $TMP
|
||||||
|
[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY
|
||||||
|
cd $REPOSITORY
|
||||||
|
git pull --all
|
||||||
|
|
||||||
|
cp -R $REPOSITORY $TMP/
|
||||||
|
cd $TMP/$PRGNAM
|
||||||
|
[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0)
|
||||||
|
[ "x$VERSION" == "x" ] && VERSION=trunk
|
||||||
|
[ "x$VERSION" == "xtrunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" || git checkout $VERSION
|
||||||
|
|
||||||
|
cargo build --release
|
||||||
|
|
||||||
|
mkdir -p $PKG$PREFIX/bin
|
||||||
|
find target/release/ -type f -executable -maxdepth 1 -exec cp {} $PKG$PREFIX/bin/ \;
|
||||||
|
chmod 755 $PKG$PREFIX/bin/*
|
||||||
|
|
||||||
|
# Completions
|
||||||
|
mkdir -p $PKG/usr/share/bash-completion/completions/
|
||||||
|
$PKG$PREFIX/bin/jj util completion > $PKG/usr/share/bash-completion/completions/jj
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/share/fish/vendor_completions.d/
|
||||||
|
$PKG$PREFIX/bin/jj util completion --fish > $PKG/usr/share/fish/vendor_completions.d/jj.fish
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/share/zsh/site-functions/
|
||||||
|
$PKG$PREFIX/bin/jj util completion --zsh > $PKG/usr/share/zsh/site-functions/_jj
|
||||||
|
|
||||||
|
# move doc/ to the appropriate location
|
||||||
|
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
cp -a AUTHORS LICENSE* ./*.md docs/ $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
|
||||||
|
# correction
|
||||||
|
cd $PKG
|
||||||
|
chown -R root:root *
|
||||||
|
|
||||||
|
[ -d $PKG$PREFIX/man ] && find $PKG$PREFIX/man -type f -not -name \*.gz -exec gzip -9 {} \;
|
||||||
|
|
||||||
|
# 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 (A Git-compatible DVCS that is both simple and powerful)
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: Jujutsu is a Git-compatible DVCS. It combines features from Git (data
|
||||||
|
$PRGNAM: model, speed), Mercurial (anonymous branching, simple CLI free from
|
||||||
|
$PRGNAM: "the index", revsets, powerful history-rewriting), and Pijul/Darcs
|
||||||
|
$PRGNAM: (first-class conflicts), with features not found in most of them
|
||||||
|
$PRGNAM: (working-copy-as-a-commit, undo functionality, automatic rebase,
|
||||||
|
$PRGNAM: safe replication via rsync, Dropbox, or distributed file system).
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM:
|
||||||
|
$PRGNAM: https://github.com/${GITHUB_REPO}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# empaquetage
|
||||||
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -58,4 +58,4 @@ EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n ${OUTPUT}/${PRGNAM}-$(echo ${VERSION} | tr - _)-${ARCH}-${BUILD}${TAG}.txz
|
/sbin/makepkg --linkadd y --chown n --prepend ${OUTPUT}/${PRGNAM}-$(echo ${VERSION} | tr - _)-${ARCH}-${BUILD}${TAG}.txz
|
||||||
|
|
|
@ -101,4 +101,4 @@ EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
|
||||||
|
|
|
@ -62,4 +62,4 @@ EOF
|
||||||
# empaquetage
|
# empaquetage
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -56,4 +56,4 @@ EOF
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
|
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -81,4 +81,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -130,4 +130,4 @@ EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -32,8 +32,6 @@ git submodule update
|
||||||
cp -R "$REPOSITORY" $TMP/
|
cp -R "$REPOSITORY" $TMP/
|
||||||
cd "$TMP/$PRGNAM/" || exit 1
|
cd "$TMP/$PRGNAM/" || exit 1
|
||||||
|
|
||||||
git checkout zig-0.10
|
|
||||||
|
|
||||||
[ "$VERSION" == "latest" ] && VERSION=$(git describe --tags --abbrev=0)
|
[ "$VERSION" == "latest" ] && VERSION=$(git describe --tags --abbrev=0)
|
||||||
[ "$VERSION" == "" ] && VERSION=trunk
|
[ "$VERSION" == "" ] && VERSION=trunk
|
||||||
[ "$VERSION" == "trunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" || git checkout "$VERSION"
|
[ "$VERSION" == "trunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" || git checkout "$VERSION"
|
||||||
|
@ -77,4 +75,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f "$PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la"
|
rm -f "$PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la"
|
||||||
/sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz"
|
/sbin/makepkg --linkadd y --chown n --prepend "$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz"
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -82,4 +82,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -68,4 +68,4 @@ $PRGNAM:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -53,4 +53,4 @@ EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n ${OUTPUT}/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz
|
/sbin/makepkg --linkadd y --chown n --prepend ${OUTPUT}/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -62,4 +62,4 @@ EOF
|
||||||
# empaquetage
|
# empaquetage
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -85,4 +85,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -85,4 +85,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -67,4 +67,4 @@ EOF
|
||||||
# empaquetage
|
# empaquetage
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -46,4 +46,4 @@ EOF
|
||||||
# empaquetage
|
# empaquetage
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -85,4 +85,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -73,4 +73,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -58,4 +58,4 @@ $PRGNAM: https://bun.sh/
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
# empaquetage
|
# empaquetage
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -59,4 +59,4 @@ $PRGNAM: http://crystal-lang.org/
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$CLEAN_VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$CLEAN_VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -102,4 +102,4 @@ $PRGNAM: http://crystal-lang.org/
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rm -f "$PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la"
|
rm -f "$PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la"
|
||||||
/sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-${VERSION}_${SHARDS_VERSION}-$ARCH-$BUILD$TAG.txz"
|
/sbin/makepkg --linkadd y --chown n --prepend "$OUTPUT/$PRGNAM-${VERSION}_${SHARDS_VERSION}-$ARCH-$BUILD$TAG.txz"
|
||||||
|
|
|
@ -59,4 +59,4 @@ EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n ${OUTPUT}/${PRGNAM}-$(echo ${VERSION} | tr - _)-${ARCH}-${BUILD}${TAG}.txz
|
/sbin/makepkg --linkadd y --chown n --prepend ${OUTPUT}/${PRGNAM}-$(echo ${VERSION} | tr - _)-${ARCH}-${BUILD}${TAG}.txz
|
||||||
|
|
|
@ -73,4 +73,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -69,4 +69,4 @@ $PRGNAM:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -81,4 +81,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -51,4 +51,4 @@ EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n ${OUTPUT}/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz
|
/sbin/makepkg --linkadd y --chown n --prepend ${OUTPUT}/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz
|
||||||
|
|
|
@ -69,4 +69,4 @@ $PRGNAM: https://www.hpcalc.org/details/8971
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}_$PATCH_VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-${VERSION}_$PATCH_VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
187
d/libgccjit/SlackBuild
Executable file
187
d/libgccjit/SlackBuild
Executable file
|
@ -0,0 +1,187 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# "gwh-ified" based on http://slackware.uk/slint/x86_64/slint-15.0/source/libgccjit/
|
||||||
|
|
||||||
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
|
PKGNAM=$(basename "$CWD")
|
||||||
|
BUILD=${BUILD:-2}
|
||||||
|
TAG=${TAG:-gwh}
|
||||||
|
|
||||||
|
OFFICIAL_GCC_SRC_PATH=${OFFICIAL_GCC_SRC_PATH:-/home/installs/mirrors/slackware64-current/source/d/gcc/}
|
||||||
|
SRCNAM=gcc
|
||||||
|
SRCVER=${VERSION:-$(echo $OFFICIAL_GCC_SRC_PATH/$SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
|
||||||
|
VERSION=$(echo $SRCVER | cut -f 1 -d _)
|
||||||
|
|
||||||
|
TMP=${TMP:-/tmp/$TAG}
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
# This is the main DESTDIR target:
|
||||||
|
PKG=$TMP/pkg-$PKGNAM
|
||||||
|
|
||||||
|
# How many jobs to run in parallel:
|
||||||
|
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
|
||||||
|
|
||||||
|
# Automatically determine the architecture we're building on:
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$(uname -m)" in
|
||||||
|
i?86) ARCH=i586 ;;
|
||||||
|
arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
|
||||||
|
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||||
|
*) ARCH=$(uname -m) ;;
|
||||||
|
esac
|
||||||
|
export ARCH
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||||
|
# the name of the created package would be, and then exit. This information
|
||||||
|
# could be useful to other scripts.
|
||||||
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
|
echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$ARCH" = "i386" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
LIB_ARCH=i386
|
||||||
|
elif [ "$ARCH" = "i486" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
LIB_ARCH=i386
|
||||||
|
elif [ "$ARCH" = "i586" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
LIB_ARCH=i386
|
||||||
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
LIB_ARCH=i386
|
||||||
|
elif [ "$ARCH" = "s390" ]; then
|
||||||
|
SLKCFLAGS="-O2"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
LIB_ARCH=s390
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
|
LIB_ARCH=amd64
|
||||||
|
elif [ "$ARCH" = "armv7hl" ]; then
|
||||||
|
SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
LIB_ARCH=armv7hl
|
||||||
|
else
|
||||||
|
SLKCFLAGS="-O2"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
LIB_ARCH=$ARCH
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$ARCH" in
|
||||||
|
arm*) TARGET=$ARCH-slackware-linux-gnueabi ;;
|
||||||
|
*) TARGET=$ARCH-slackware-linux ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Extract the source code:
|
||||||
|
mkdir -p $TMP
|
||||||
|
cd $TMP || exit 1
|
||||||
|
rm -rf gcc-$SRCVER
|
||||||
|
tar xf $OFFICIAL_GCC_SRC_PATH/gcc-$SRCVER.tar.?z || exit 1
|
||||||
|
|
||||||
|
# Clear the build locations:
|
||||||
|
rm -rf $PKG
|
||||||
|
mkdir $PKG
|
||||||
|
|
||||||
|
cd gcc-$SRCVER || exit 1
|
||||||
|
|
||||||
|
# Fix perms/owners:
|
||||||
|
chown -R root:root .
|
||||||
|
find . \
|
||||||
|
\( -perm 777 -o -perm 775 -o -perm 754 \) \
|
||||||
|
-exec chmod 755 {} \+ -o \
|
||||||
|
\( -perm 664 \) \
|
||||||
|
-exec chmod 644 {} \+
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PKGNAM
|
||||||
|
cp -a \
|
||||||
|
COPYING* gcc/ONEWS README INSTALL LAST_UPDATED \
|
||||||
|
$PKG/usr/doc/$PKGNAM
|
||||||
|
|
||||||
|
mkdir gcc.build.lnx
|
||||||
|
cd gcc.build.lnx
|
||||||
|
|
||||||
|
if [ "$ARCH" != "x86_64" ]; then
|
||||||
|
GCC_ARCHOPTS="--with-arch=$ARCH"
|
||||||
|
else
|
||||||
|
GCC_ARCHOPTS="--disable-multilib"
|
||||||
|
fi
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
|
../configure --prefix=/usr \
|
||||||
|
--libdir=/usr/lib$LIBDIRSUFFIX \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--infodir=/usr/info \
|
||||||
|
--enable-shared \
|
||||||
|
--enable-host-shared \
|
||||||
|
--enable-bootstrap \
|
||||||
|
--enable-languages=jit \
|
||||||
|
--enable-threads=posix \
|
||||||
|
--enable-checking=release \
|
||||||
|
--enable-objc-gc \
|
||||||
|
--with-system-zlib \
|
||||||
|
--enable-libstdcxx-dual-abi \
|
||||||
|
--with-default-libstdcxx-abi=new \
|
||||||
|
--disable-libstdcxx-pch \
|
||||||
|
--disable-libunwind-exceptions \
|
||||||
|
--enable-__cxa_atexit \
|
||||||
|
--disable-libssp \
|
||||||
|
--enable-gnu-unique-object \
|
||||||
|
--enable-plugin \
|
||||||
|
--enable-lto \
|
||||||
|
--disable-install-libiberty \
|
||||||
|
--disable-werror \
|
||||||
|
--with-gnu-ld \
|
||||||
|
--with-isl \
|
||||||
|
--verbose \
|
||||||
|
--with-arch-directory=$LIB_ARCH \
|
||||||
|
--disable-gtktest \
|
||||||
|
--enable-clocale=gnu \
|
||||||
|
$GCC_ARCHOPTS \
|
||||||
|
--target=${TARGET} \
|
||||||
|
--build=${TARGET} \
|
||||||
|
--host=${TARGET} || exit 1
|
||||||
|
|
||||||
|
make $NUMJOBS bootstrap || exit 1
|
||||||
|
make -C gcc DESTDIR="$PKG" jit.install-common jit.install-info
|
||||||
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
|
cd $PKG || exit 1
|
||||||
|
rm -rf usr/bin usrlib64/gcc usr/libexec usr/man usr/info/dir
|
||||||
|
cd usr/info
|
||||||
|
gzip -9 *
|
||||||
|
|
||||||
|
cd $PKG || exit 1
|
||||||
|
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------------------------------------------------------|
|
||||||
|
libgccjit: libgccit (Just In Time Compilation: shared library and header files.)
|
||||||
|
libgccjit:
|
||||||
|
libgccjit: GCC can be built as a shared library "libgccjit.so", for generating
|
||||||
|
libgccjit: machine code from API calls, using GCC as the backend.
|
||||||
|
libgccjit: This shared library can then be dynamically-linked into bytecode
|
||||||
|
libgccjit: interpreters and other such programs that want to generate machine
|
||||||
|
libgccjit: code "on the fly" at run-time. It can also be used for ahead-of-time
|
||||||
|
libgccjit: code generation, for building standalone compilers (so the "jit"
|
||||||
|
libgccjit: part of the name is now something of a misnomer).
|
||||||
|
libgccjit: The library provides a C API, along with a C++ wrapper API, with
|
||||||
|
libgccjit: bindings for languages available from 3rd parties
|
||||||
|
libgccjit:
|
||||||
|
EOF
|
||||||
|
|
||||||
|
makepkg --linkadd y --chown n --prepend $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -124,4 +124,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -74,4 +74,4 @@ $PRGNAM: https://sexyjdk.com
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
#rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$PKG_VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -77,4 +77,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -55,4 +55,4 @@ $PRGNAM:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -73,4 +73,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr - _)-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | tr - _)-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -90,4 +90,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -84,4 +84,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -74,4 +74,4 @@ EOF
|
||||||
# empaquetage
|
# empaquetage
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -77,4 +77,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -78,4 +78,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -49,4 +49,4 @@ EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -65,4 +65,4 @@ EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n ${OUTPUT}/${PRGNAM}-$(echo ${VERSION} | tr - _)-${ARCH}-${BUILD}${TAG}.txz
|
/sbin/makepkg --linkadd y --chown n --prepend ${OUTPUT}/${PRGNAM}-$(echo ${VERSION} | tr - _)-${ARCH}-${BUILD}${TAG}.txz
|
||||||
|
|
|
@ -147,5 +147,5 @@ esac
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
|
||||||
|
|
||||||
|
|
|
@ -84,4 +84,4 @@ EOF
|
||||||
|
|
||||||
# empaquetage
|
# empaquetage
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -52,4 +52,4 @@ EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
|
@ -56,4 +56,4 @@ $PRGNAM:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue