diff options
Diffstat (limited to 'source/l')
-rwxr-xr-x | source/l/Mako/Mako.SlackBuild | 2 | ||||
-rwxr-xr-x | source/l/shared-mime-info/fetch-shared-mime-info.sh | 42 | ||||
-rwxr-xr-x | source/l/shared-mime-info/shared-mime-info.SlackBuild | 8 | ||||
-rw-r--r-- | source/l/shared-mime-info/shared-mime-info.url | 1 |
4 files changed, 50 insertions, 3 deletions
diff --git a/source/l/Mako/Mako.SlackBuild b/source/l/Mako/Mako.SlackBuild index 41171e69c..2edeaf42e 100755 --- a/source/l/Mako/Mako.SlackBuild +++ b/source/l/Mako/Mako.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=Mako VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} if [ -z "$ARCH" ]; then case "$( uname -m )" in diff --git a/source/l/shared-mime-info/fetch-shared-mime-info.sh b/source/l/shared-mime-info/fetch-shared-mime-info.sh new file mode 100755 index 000000000..3991e39f4 --- /dev/null +++ b/source/l/shared-mime-info/fetch-shared-mime-info.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# Copyright 2019 Patrick J. Volkerding, Sebeka, Minnesota, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# Clear download area: +rm -rf shared-mime-info + +# Clone repository: +git clone https://gitlab.freedesktop.org/xdg/shared-mime-info.git + +VERSION=$(cd shared-mime-info && grep "^AC_INIT(\[shared-mime-info" configure.ac | cut -f 2 -d , | tr -d [ | tr -d ]) + +# Cleanup. We're not packing up the whole git repo. +( cd shared-mime-info && find . -type d -name ".git*" -exec rm -rf {} \; 2> /dev/null ) +( cd shared-mime-info/tests && rm -rf * ) +mv shared-mime-info shared-mime-info-${VERSION} +rm -f shared-mime-info-${VERSION}.tar +tar cf shared-mime-info-${VERSION}.tar shared-mime-info-${VERSION} +rm -f shared-mime-info-${VERSION}.tar.lz +plzip -9 shared-mime-info-${VERSION}.tar +rm -rf shared-mime-info-${VERSION} +echo +echo "shared-mime-info packaged as shared-mime-info-${VERSION}.tar.lz" +echo diff --git a/source/l/shared-mime-info/shared-mime-info.SlackBuild b/source/l/shared-mime-info/shared-mime-info.SlackBuild index 745cce86a..0c4fee47d 100755 --- a/source/l/shared-mime-info/shared-mime-info.SlackBuild +++ b/source/l/shared-mime-info/shared-mime-info.SlackBuild @@ -23,7 +23,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=shared-mime-info -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -68,7 +68,7 @@ mkdir -p $TMP $PKG cd $TMP rm -rf ${PKGNAM}-$VERSION -tar xvf $CWD/${PKGNAM}-$VERSION.tar.?z* || exit 1 +tar xvf $CWD/${PKGNAM}-$VERSION.tar.?z || exit 1 cd ${PKGNAM}-$VERSION || exit 1 # Don't use fdatasync() unless you want it to take 1000x longer @@ -82,6 +82,10 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +if [ ! -r configure ]; then + NOCONFIGURE=1 ./autogen.sh +fi + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ diff --git a/source/l/shared-mime-info/shared-mime-info.url b/source/l/shared-mime-info/shared-mime-info.url new file mode 100644 index 000000000..0d268d0d6 --- /dev/null +++ b/source/l/shared-mime-info/shared-mime-info.url @@ -0,0 +1 @@ +https://gitlab.freedesktop.org/xdg/shared-mime-info |