mirror of
https://github.com/Ponce/slackbuilds
synced 2024-09-29 17:37:55 +02:00
Updated for version 0.47
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
d7b54e237d
commit
41baa255cb
4 changed files with 71 additions and 44 deletions
|
@ -1,5 +1,20 @@
|
|||
ncmpc is a curses client for the Music Player Daemon (MPD). ncmpc
|
||||
connects to a MPD running on a machine on the local network, and
|
||||
controls this with an interface inspired by cplay. If ncmpc is used
|
||||
with lirc and irpty it can be used to manage playlists and control MPD
|
||||
with a remote control.
|
||||
ncmpc is a fully featured MPD client, which runs in a terminal
|
||||
(using ncurses). Its goal is to provide a keyboard oriented and
|
||||
consistent interface to MPD, without wasting resources.
|
||||
|
||||
Features:
|
||||
|
||||
* full Unicode and wide character support;
|
||||
* music database browser, database search, media library;
|
||||
* audio output configuration;
|
||||
* lyrics;
|
||||
* LIRC support;
|
||||
* customizable key bindings and colors;
|
||||
* tiny memory footprint;
|
||||
* playlist editor.
|
||||
|
||||
Some optional and important dependencies, detected automatically:
|
||||
|
||||
* Sphinx: for generating man pages mpc(1);
|
||||
* lirc: for infrared remote support;
|
||||
* PCRE: for regular expression support in the "find" command.
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
|
||||
# Slackware build script for ncmpc
|
||||
|
||||
# Copyright 2006-2010 Andrew Brouwers <abrouwers@gmail.com>
|
||||
# Copyright 2014 Luka Novsak <lnovsak@gmail.com>
|
||||
# Copyright 2023 Eugene M., <damagedone at gmx dot com>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -12,7 +11,7 @@
|
|||
# 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
|
||||
# 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,
|
||||
|
@ -23,12 +22,10 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Modified by the SlackBuilds.org project
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=ncmpc
|
||||
VERSION=${VERSION:-0.24}
|
||||
VERSION=${VERSION:-0.47}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -41,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 +54,7 @@ elif [ "$ARCH" = "i686" ]; then
|
|||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
|
@ -73,7 +67,7 @@ rm -rf $PKG
|
|||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
|
||||
tar xf $CWD/$PRGNAM-$VERSION.tar.xz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
|
@ -82,22 +76,40 @@ find -L . \
|
|||
\( -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 \
|
||||
cd build
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
meson .. \
|
||||
--buildtype=release \
|
||||
--infodir=/usr/info \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--mandir=/usr/man
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
-Dstrip=true
|
||||
"${NINJA:=ninja}"
|
||||
DESTDIR=$PKG $NINJA install
|
||||
cd ..
|
||||
|
||||
make
|
||||
make install-strip DESTDIR=$PKG
|
||||
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
|
||||
|
||||
gzip -9 $PKG/usr/man/man?/*
|
||||
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
|
||||
|
||||
[ -d $PKG/usr/man ] && gzip -9 $PKG/usr/man/man*/*
|
||||
|
||||
#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
|
||||
|
||||
find $PKG -name perllocal.pod \
|
||||
-o -name ".packlist" \
|
||||
-o -name "*.bs" \
|
||||
| xargs rm -f
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS COPYING NEWS README doc/config.sample \
|
||||
doc/keys.sample doc/ncmpc.lirc $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
rm -rf $PKG/usr/share/{doc,ncmpc}
|
||||
mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
rm -rf $PKG/usr/share/doc/
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="ncmpc"
|
||||
VERSION="0.24"
|
||||
VERSION="0.47"
|
||||
HOMEPAGE="https://www.musicpd.org/clients/ncmpc/"
|
||||
DOWNLOAD="https://www.musicpd.org/download/ncmpc/0/ncmpc-0.24.tar.xz"
|
||||
MD5SUM="0717193f38446780372f2a8907316362"
|
||||
DOWNLOAD="https://www.musicpd.org/download/ncmpc/0/ncmpc-0.47.tar.xz"
|
||||
MD5SUM="388bbf3eed9a845e8e97d7afa2c2d596"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="libmpdclient"
|
||||
MAINTAINER="Luka Novsak"
|
||||
EMAIL="lnovsak@gmail.com"
|
||||
MAINTAINER="Eugene M."
|
||||
EMAIL="damagedone@gmx.com"
|
||||
|
|
Loading…
Reference in a new issue