# HG changeset patch # User David Demelier # Date 1565115600 -7200 # Node ID c624e8546079674c62a8bf22abb38befadc40785 # Parent a4d2a69b80d925b3ea42fcac12cd29969f115b15 xfce/parole: initial import, closes #1643 diff -r a4d2a69b80d9 -r c624e8546079 xfce/parole/parole-post.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xfce/parole/parole-post.sh Tue Aug 06 20:20:00 2019 +0200 @@ -0,0 +1,20 @@ +#!/bin/sh +# +# Copyright (c) 2019 David Demelier +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +if [ -x /bin/gtk-update-icon-cache ]; then + /bin/gtk-update-icon-cache -fqt /share/icons/hicolor +fi diff -r a4d2a69b80d9 -r c624e8546079 xfce/parole/parole.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xfce/parole/parole.sh Tue Aug 06 20:20:00 2019 +0200 @@ -0,0 +1,116 @@ +#!/bin/sh +# +# Copyright (c) 2019 David Demelier +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +PKGNAME=parole +PKGVERSION=1.0.3 +PKGREVISION=1 +PKGLICENSE="GPLv2" +PKGSUMMARY="Xfce simple multimedia player" +PKGDOWNLOAD="http://archive.xfce.org/src/apps/$PKGNAME/${PKGVERSION%.*}/$PKGNAME-$PKGVERSION.tar.bz2" +PKGOPTIONS="MPRIS NLS NOTIFICATIONS TAGLIB TRAY" +PKGDEPENDS="graphics/cairo + graphics/gtk + graphics/libexif + lib/glib + multimedia/gstreamer + multimedia/gst-plugins-base + network/dbus + x11/libx11 + xfce/libxfce4ui + xfce/libxfce4util + xfce/xfconf" + +: ${CHOST:=$(uname -m)-linux-musl} +: ${CBUILD:=$(uname -m)-linux-musl} +: ${CC:=clang} +: ${CFLAGS:=-O2} +: ${CXX:=clang++} +: ${CXXFLAGS:=-O2} +: ${LDFLAGS:=} +: ${LIBS:=} +: ${MPRIS:=yes} +: ${NLS:=yes} +: ${NOTIFICATIONS:=yes} +: ${TAGLIB:=yes} +: ${TRAY:=yes} + +if [ "$MPRIS" = "yes" ]; then + with_mpris="--enable-mpris2-plugin" +else + with_mpris="--disable-mpris2-plugin" +fi + +if [ "$NLS" = "yes" ]; then + PKGDEPENDS="core/gettext:build $PKGDEPENDS" + with_nls="--enable-nls" +else + with_nls="--disable-nls" +fi + +if [ "$NOTIFICATIONS" = "yes" ]; then + PKGDEPENDS="desktop/libnotify $PKGDEPENDS" + with_notifications="--enable-notify-plugin" +else + with_notifications="--disable-notify-plugin" +fi + +if [ "$TAGLIB" = "yes" ]; then + PKGDEPENDS="audio/taglib $PKGDEPENDS" + with_taglib="--enable-taglib" +else + with_taglib="--disable-taglib" +fi + +if [ "$TRAY" = "yes" ]; then + with_tray="--enable-tray-plugin" +else + with_tray="--disable-tray-plugin" +fi + +build() +{ + rm -rf $PKGNAME-$PKGVERSION + tar xvf $PKGNAME-$PKGVERSION.tar.bz2 + cd $PKGNAME-$PKGVERSION + + # No tunable for pixmapsdir, quick patch. + sed -i -e '/pixmapsdir/ s/${DATADIRNAME}/share/' configure + CC="$CC" \ + CFLAGS="$CFLAGS" \ + CXX="$CXX" \ + CXXFLAGS="$CXXFLAGS" \ + LDFLAGS="$LDFLAGS" \ + LIBS="$LIBS" \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix= \ + --disable-debug \ + --datadir=/share \ + --localedir=/share/local \ + $with_mpris \ + $with_nls \ + $with_notifications \ + $with_taglib \ + $with_tray + make + make install localedir=/share/locale DESTDIR=$DESTDIR + rm -f $DESTDIR/lib/parole-0/*.la + + cd .. + rm -rf $PKGNAME-$PKGVERSION +} diff -r a4d2a69b80d9 -r c624e8546079 xfce/parole/parole.sha1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xfce/parole/parole.sha1 Tue Aug 06 20:20:00 2019 +0200 @@ -0,0 +1,1 @@ +f71cfb936d24ff3ed18810ffdd49aa5cbb1ea343 parole-1.0.3.tar.bz2