summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Finelli2015-06-09 08:46:45 -0400
committerMario Finelli2015-06-09 08:46:45 -0400
commit54d2bbfe24565c0af01ed8eff2da5e40e62b60c4 (patch)
tree9c65817a6c8ee6e3713531f4af4a7a8816d29382
downloadaur-54d2bbfe24565c0af01ed8eff2da5e40e62b60c4.tar.gz
Initial import
-rw-r--r--.SRCINFO25
-rw-r--r--.gitignore9
-rw-r--r--LICENSE41
-rw-r--r--PKGBUILD48
-rw-r--r--foobar2000.desktop23
-rw-r--r--foobar2000.install13
-rw-r--r--foobar2000.pngbin0 -> 24224 bytes
-rw-r--r--foobar2000.sh27
8 files changed, 186 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..ce9178037f1b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = foobar2000
+ pkgdesc = An advanced freeware audio player (uses Wine).
+ pkgver = 1.3.8
+ pkgrel = 1
+ url = http://www.foobar2000.org/
+ install = foobar2000.install
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = unarchiver
+ depends = wine
+ depends = desktop-file-utils
+ source = https://dl.dropboxusercontent.com/u/24761750/foobar2000_v1.3.8.exe
+ source = LICENSE
+ source = foobar2000.sh
+ source = foobar2000.png
+ source = foobar2000.desktop
+ sha256sums = 2f478a563e10646c2edf3fd7180cdd76e162e423cfa51c95cadf6d3294ae6a6d
+ sha256sums = 6a0aec62c077dae45b778b9e18ae6f470d5105c020e4e44a67ab267f0bf40e35
+ sha256sums = 3a1876b7f7f9b0297a633d7e6a480f92a2eeea46d8496a3546fcb1b0859be7aa
+ sha256sums = 2031e952d1d1d6cb4c2ff2b879421149f3f0780ca5d3ac03bc9c23fcbbd053d6
+ sha256sums = cf54a01fdba4fe3de60514fe898680f24439eb43c4655d6892272c15e489eb2d
+
+pkgname = foobar2000
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..1f70b96b56c7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO
+!LICENSE
+!foobar2000.png
+!foobar2000.sh
+!foobar2000.install
+!foobar2000.desktop
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000000..7abbeb89dd4d
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,41 @@
+foobar2000 audio player
+Copyright © 2001-2010, Peter Pawlowski
+Portions copyright © 2005-2006 Holger Stenger
+Portions copyright © 2003-2005 Gian-Carlo Pascutto
+Icons copyright © 2007 Florian Trendelenburg
+Installer script and button icons copyright © 2003-2010 Janne Hyvärinen
+All rights reserved.
+
+Redistribution and use in binary form, without modification, are permitted provided that the following conditions are met:
+
+ * Only unmodified installers can be redistributed; redistribution of foobar2000 binaries in any other form is not permitted.
+ * Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Note that a separate less restrictive license applies to open source parts, downloadable separately.
+
+FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
+Copyright © 2003-2005 M. Bakker, Nero Software AG, http://www.nero.com
+
+Musepack decoding library
+Copyright © 1999-2007 Buschmann/Klemm/Piecha/Wolf/MDT
+
+WAVPACK Hybrid Lossless Wavefile Compressor
+Copyright © 1998-2009 Conifer Software
+
+libogg, libvorbis and libspeex libraries
+Copyright © 2002-2005 Xiph.org Foundation
+
+FLAC - Free Lossless Audio Codec
+Copyright © 2001-2007 Josh Coalson
+
+zlib general purpose compression library
+Copyright © 1995-2005 Jean-loup Gailly and Mark Adler
+
+unRAR source © Alexander Roshal
+
+SuperEQ library
+Copyright © Naoki Shibata, http://shibatch.sourceforge.net/
+Distributed under terms of LGPL, modified sources available for download separately.
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..650b4add358f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Mario Finelli <mario dot finelli at yahoo dot com>
+
+pkgname=foobar2000
+pkgver=1.3.8
+pkgrel=1
+pkgdesc="An advanced freeware audio player (uses Wine)."
+arch=(i686 x86_64)
+url="http://www.foobar2000.org/"
+license=('custom')
+depends=(wine desktop-file-utils)
+makedepends=(unarchiver)
+source=("https://dl.dropboxusercontent.com/u/24761750/${pkgname}_v${pkgver}.exe"
+ "LICENSE"
+ "${pkgname}.sh"
+ "${pkgname}.png"
+ "${pkgname}.desktop")
+install="${pkgname}.install"
+sha256sums=('2f478a563e10646c2edf3fd7180cdd76e162e423cfa51c95cadf6d3294ae6a6d'
+ '6a0aec62c077dae45b778b9e18ae6f470d5105c020e4e44a67ab267f0bf40e35'
+ '3a1876b7f7f9b0297a633d7e6a480f92a2eeea46d8496a3546fcb1b0859be7aa'
+ '2031e952d1d1d6cb4c2ff2b879421149f3f0780ca5d3ac03bc9c23fcbbd053d6'
+ 'cf54a01fdba4fe3de60514fe898680f24439eb43c4655d6892272c15e489eb2d')
+
+package() {
+ # unpack NSIS installer .exe into destination
+ unar -q -D -e windows-1252 -o "${pkgdir}/usr/share/${pkgname}" "${srcdir}/${pkgname}_v${pkgver}.exe"
+
+ # remove NSIS installer directory & unneeded files in portable mode
+ rm -fr "${pkgdir}/usr/share/${pkgname}/NSIS Plugins Directory" \
+ "${pkgdir}/usr/share/${pkgname}/icons" \
+ "${pkgdir}/usr/share/${pkgname}/foobar2000 Shell Associations Updater.exe" \
+ "${pkgdir}/usr/share/${pkgname}/Register R0"
+
+ # run foobar2000 in portable mode
+ touch "${pkgdir}/usr/share/${pkgname}/portable_mode_enabled"
+
+ # Install the license
+ install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ # Install the script
+ install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
+
+ # Install the icon
+ install -Dm644 "${srcdir}/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+
+ # Install the .desktop
+ install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+}
diff --git a/foobar2000.desktop b/foobar2000.desktop
new file mode 100644
index 000000000000..c04705507846
--- /dev/null
+++ b/foobar2000.desktop
@@ -0,0 +1,23 @@
+[Desktop Entry]
+Name=foobar2000
+GenericName=Audio player
+GenericName[fr]=Lecteur audio
+Comment=Simple and powerful audio player.
+Comment[fr]=Lecteur audio simple et puissant.
+Actions=AppendToPlaylist;
+Encoding=UTF-8
+Version=1.0
+Type=Application
+Terminal=false
+Icon=foobar2000
+Exec=foobar2000 -immediate %F
+Categories=AudioVideo;Audio;Player;
+MimeType=audio/aac;audio/x-ape;audio/basic;audio/mp4;audio/mpeg;audio/mpegurl;audio/vorbis;audio/x-flac;audio/x-mp2;audio/x-mp3;audio/x-mpegurl;audio/x-ms-wma;audio/x-oggflac;audio/x-speex;audio/x-vorbis;audio/x-wav;audio/m3u;audio/x-aifc;audio/x-aiffc;audio/x-aiff;audio/x-musepack;audio/x-wavpack;x-content/audio-player;audio/x-matroska;audio/x-vorbis+ogg;
+
+[Desktop Action AppendToPlaylist]
+Name=Append to Playlist
+Name[fr]=Ajouter à la liste de lecture
+Icon=foobar2000
+Exec=foobar2000 -add -immediate %F
+
+
diff --git a/foobar2000.install b/foobar2000.install
new file mode 100644
index 000000000000..1950269155e8
--- /dev/null
+++ b/foobar2000.install
@@ -0,0 +1,13 @@
+post_install() {
+ update-desktop-database -q /usr/share/applications
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/foobar2000.png b/foobar2000.png
new file mode 100644
index 000000000000..c25ecf8451d2
--- /dev/null
+++ b/foobar2000.png
Binary files differ
diff --git a/foobar2000.sh b/foobar2000.sh
new file mode 100644
index 000000000000..f26d04906752
--- /dev/null
+++ b/foobar2000.sh
@@ -0,0 +1,27 @@
+#! /bin/bash
+
+progName="foobar2000"
+progRealPath="/usr/share/$progName"
+progHome="$HOME/.$progName"
+progBin="$progName.exe"
+
+# Symlink stuff
+mkdir -p "$progHome" || exit 1
+# Delete broken symlinks
+find -L "$progHome" -type l -delete
+# Update existing symlinks, add new symlinks
+cp -urs "$progRealPath/"* "$progHome" 2> /dev/null
+
+# Switches: use -something instead of /something to avoid confusion with Unix paths
+# Also convert Unix paths to Windows paths.
+declare -a args
+
+for arg; do
+ if [[ "${arg:0:1}" = "-" ]]; then
+ args+=("${arg/#-//}")
+ else
+ args+=("$(winepath -w "$arg")")
+ fi
+done
+
+wine "$progHome/$progBin" "${args[@]}"