diff options
author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2022-10-21 21:57:29 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-10-29 10:28:32 +0700 |
commit | 846cad68f204cbdbd55e863330dca52036c19163 (patch) | |
tree | 22c918854817e55d0fc95e84d293ba1359202277 /multimedia/exaile/exaile.SlackBuild | |
parent | 06652f997615033b09c4a8978f922e4738d02182 (diff) |
multimedia/exaile: Updated for version 4.1.2. New maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/exaile/exaile.SlackBuild')
-rw-r--r-- | multimedia/exaile/exaile.SlackBuild | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/multimedia/exaile/exaile.SlackBuild b/multimedia/exaile/exaile.SlackBuild index bafe2f6d50f33..8aad122a24de8 100644 --- a/multimedia/exaile/exaile.SlackBuild +++ b/multimedia/exaile/exaile.SlackBuild @@ -3,6 +3,7 @@ # Written by Marco Cecchetti (mrc.ildp@gmail.com) # Update by Diogo Leal (diogo@diogoleal.com) +# Copyright 2022 fourtysixandtwo <fourtysixandtwo@sliderr.net> # Copyright 2017 Ekin Akoglu, Erdemli, Mersin, Turkey | ekinakoglu@gmail.com # Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org @@ -24,10 +25,12 @@ # along with this program (most likely, a file named COPYING). If # not, see <http://www.gnu.org/licenses/>. +# 20221021 46and2: Updated version, new maintainer. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=exaile -VERSION=${VERSION:-3.4.5} +VERSION=${VERSION:-4.1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -53,12 +56,16 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" else + SLKCFLAGS="-O2" LIBDIRSUFFIX="" fi @@ -77,22 +84,25 @@ 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 {} \; -## Fix manpage location. -sed -i -e 's|share/man|man|g' Makefile - +PREFIX=/usr make -PREFIX=/usr \ -LIBINSTALLDIR=/lib${LIBDIRSUFFIX} \ -make install DESTDIR=$PKG +make install \ + PREFIX=${PREFIX} \ + LIBINSTALLDIR=${PREFIX}/lib${LIBDIRSUFFIX} \ + MANPREFIX=${PREFIX}/ \ + DESTDIR=$PKG mv $PKG/etc/xdg/exaile/settings.ini $PKG/etc/xdg/exaile/settings.ini.new 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 + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - COPYING DEPS INSTALL README \ + COPYING DEPS README.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |