summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorEugene M <damagedone@gmx.com>2022-09-27 21:04:11 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-03 23:22:53 +0700
commit78b2c24b54bd67ced37eee233c34f15d41869cee (patch)
tree09bf663200aa7e3dad697e61ff478bccb541c23d /audio
parentf50f2d2fc789020b9d2f3728aabb93ae8b0835be (diff)
downloadslackbuilds-78b2c24b54bd67ced37eee233c34f15d41869cee.tar.gz
audio/mpc: Updated for version 0.34
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r--audio/mpc/mpc.SlackBuild59
-rw-r--r--audio/mpc/mpc.info10
2 files changed, 39 insertions, 30 deletions
diff --git a/audio/mpc/mpc.SlackBuild b/audio/mpc/mpc.SlackBuild
index 3b38225fd8..7149210fe9 100644
--- a/audio/mpc/mpc.SlackBuild
+++ b/audio/mpc/mpc.SlackBuild
@@ -1,8 +1,8 @@
#!/bin/bash
# Slackware build script for mpc
-# Originally Written by meckafett tom[DOT]bradish[AT]gmail.com
-# Copyright 2014 Luka Novsak
+
+# Copyright 2022 Eugene M., <damagedone at gmx dot com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mpc
-VERSION=${VERSION:-0.27}
+VERSION=${VERSION:-0.34}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
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 "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -60,7 +57,7 @@ elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O4"
+ SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
@@ -70,35 +67,47 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --datarootdir=/usr \
- --localstatedir=/var
-
-make
-make install DESTDIR=$PKG
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+#mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson .. \
+ --buildtype=release \
+ --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ -Dstrip=true
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
+cd ..
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
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
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+[ -d $PKG/usr/share/man ] && mv $PKG/usr/share/man $PKG/usr/man && gzip -9 $PKG/usr/man/man*/*
+
+find $PKG -name perllocal.pod \
+ -o -name ".packlist" \
+ -o -name "*.bs" \
+ | xargs rm -f
-mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/mpc/* $PKG/usr/doc/$PRGNAM-$VERSION
+rm -rf $PKG/usr/share
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/audio/mpc/mpc.info b/audio/mpc/mpc.info
index b37ce974a7..96ddac60aa 100644
--- a/audio/mpc/mpc.info
+++ b/audio/mpc/mpc.info
@@ -1,10 +1,10 @@
PRGNAM="mpc"
-VERSION="0.27"
+VERSION="0.34"
HOMEPAGE="https://www.musicpd.org/clients/mpc/"
-DOWNLOAD="https://www.musicpd.org/download/mpc/0/mpc-0.27.tar.gz"
-MD5SUM="5411ef946c7eed406e757f4c8f7a7889"
+DOWNLOAD="https://www.musicpd.org/download/mpc/0/mpc-0.34.tar.xz"
+MD5SUM="d060ad335243c75ce3c13c8dcb5ceba2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libmpdclient"
-MAINTAINER="Luka Novsak"
-EMAIL="lnovsak@gmail.com"
+MAINTAINER="Eugene M."
+EMAIL="damagedone@gmx.com"