mirror of
https://gitlab.com/mateslackbuilds/msb.git
synced 2024-12-25 21:59:36 +01:00
brisk-menu: Updated for version 0.6.2
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
5699ac49fb
commit
116a16b9c3
1 changed files with 28 additions and 16 deletions
|
@ -22,10 +22,13 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=brisk-menu
|
PRGNAM=brisk-menu
|
||||||
VERSION=${VERSION:-0.5.0}
|
VERSION=${VERSION:-0.6.2}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_msb}
|
TAG=${TAG:-_msb}
|
||||||
|
PKGTYPE=${PKGTYPE:-txz}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
|
@ -35,9 +38,13 @@ if [ -z "$ARCH" ]; then
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wget -c https://github.com/solus-project/${PRGNAM}/archive/v${VERSION}/${PRGNAM}-${VERSION}.tar.gz
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
wget -c https://github.com/getsolus/${PRGNAM}/releases/download/v${VERSION}/${PRGNAM}-v${VERSION}.tar.xz
|
||||||
|
|
||||||
CWD=$(pwd)
|
|
||||||
TMP=${TMP:-/tmp/msb}
|
TMP=${TMP:-/tmp/msb}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
@ -68,7 +75,7 @@ rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
tar xvf $CWD/$PRGNAM-v$VERSION.tar.xz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
|
@ -77,18 +84,23 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
mkdir -p build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
meson --prefix=/usr \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
--buildtype=release \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
--localstatedir=/var \
|
meson .. \
|
||||||
--libdir=lib${LIBDIRSUFFIX} \
|
--buildtype=plain \
|
||||||
--libexecdir=/usr/lib${LIBDIRSUFFIX}/colord \
|
--infodir=/usr/info \
|
||||||
--mandir=/usr/man \
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
../
|
--libexecdir=/usr/libexec/$PRGNAM \
|
||||||
ninja
|
--localstatedir=/var \
|
||||||
DESTDIR=$PKG ninja install
|
--mandir=/usr/man \
|
||||||
cd -
|
--prefix=/usr \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
-Dstrip=true
|
||||||
|
"${NINJA:=ninja}"
|
||||||
|
DESTDIR=$PKG ninja install
|
||||||
|
cd ..
|
||||||
|
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
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
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
@ -102,4 +114,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
||||||
|
|
Loading…
Reference in a new issue