Mercurial > vanilla
view xfce/parole/parole.sh @ 1037:c407c89fa383
network/wpa-supplicant: allow SSL=yes for default implementation
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 30 Aug 2019 18:12:35 +0200 |
parents | ddab65a5b3f5 |
children | 7791d3dbfecf |
line wrap: on
line source
#!/bin/busybox sh # # Copyright (c) 2019 David Demelier <markand@malikania.fr> # # 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.4 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="cairo gtk libexif glib gstreamer gst-plugins-base dbus libx11 libxfce4ui libxfce4util 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="gettext $PKGDEPENDS" with_nls="--enable-nls" else with_nls="--disable-nls" fi if [ "$NOTIFICATIONS" = "yes" ]; then PKGDEPENDS="libnotify $PKGDEPENDS" with_notifications="--enable-notify-plugin" else with_notifications="--disable-notify-plugin" fi if [ "$TAGLIB" = "yes" ]; then PKGDEPENDS="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 find $DESTDIR -type f -name "*.la" -delete cd .. rm -rf $PKGNAME-$PKGVERSION }