|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Build script for Slackware
|
|
|
|
|
# Copyright (C) 2009 Damien Goutte-Gattat
|
|
|
|
|
# Copyright (C) 2009,2010 Damien Goutte-Gattat
|
|
|
|
|
#
|
|
|
|
|
# Redistribution and use of this script, with or without modifications,
|
|
|
|
|
# is permitted provided that the following conditions are met:
|
|
|
|
@ -23,17 +23,19 @@
|
|
|
|
|
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
|
|
|
|
|
#
|
|
|
|
|
# Latest ncmpc sourcecode is available at: <http://mpd.wikia.com/>.
|
|
|
|
|
#
|
|
|
|
|
# Depends: l/libmpdclient
|
|
|
|
|
|
|
|
|
|
# Source package infos
|
|
|
|
|
NAMESRC=${NAMESRC:-ncmpc}
|
|
|
|
|
VERSION=${VERSION:-0.15}
|
|
|
|
|
VERSION=${VERSION:-0.16.1}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
|
|
|
|
|
WGET=${WGET:-http://downloads.sourceforge.net/musicpd/$ARCHIVE}
|
|
|
|
|
|
|
|
|
|
# Build infos
|
|
|
|
|
NAMEPKG=${NAMEPKG:-ncmpc}
|
|
|
|
|
BUILD=${BUILD:-1GGD}
|
|
|
|
|
ARCH=${ARCH:-i486}
|
|
|
|
|
ARCH=${ARCH:-$(uname -m | sed 's/^i?86$/i486/;s/^arm.*/arm/')}
|
|
|
|
|
JOBS=${JOBS:-1}
|
|
|
|
|
EXT=${EXT:-txz}
|
|
|
|
|
|
|
|
|
@ -93,6 +95,7 @@ CXXFLAGS=$CPUOPT \
|
|
|
|
|
--with-lyrics-plugin-dir=/usr/lib$LIBDIRSUFFIX/ncmpc/lyrics
|
|
|
|
|
make -j $JOBS
|
|
|
|
|
make install-strip DESTDIR=$PKG
|
|
|
|
|
install -m 644 COPYING $PKG/usr/doc/$NAME
|
|
|
|
|
|
|
|
|
|
# Compress man pages
|
|
|
|
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
|
|
|
|