Remove ampache-git jitsi mellowplayer

This commit is contained in:
Travis Burtrum 2019-07-27 10:31:44 -04:00
parent 19d695dcfa
commit 326dadd136
9 changed files with 0 additions and 292 deletions

View File

@ -1,44 +0,0 @@
#Maintainer: max-k <max-k AT post DOT com>
#Contributor: Jonathan 'gishten' Gustafsson <mynick AT mynick DOT com>
pkgname=ampache-git
_gitname=ampache
pkgver=3.8.9.4.g33e39238
pkgrel=1
pkgdesc="A PHP-based tool for managing and playing your audio/video files via a web interface"
arch=('i686' 'x86_64')
url="http://www.ampache.org/"
license=('GPL')
depends=('mariadb>=5.0' 'php>=5.4' 'curl')
makedepends=('git' 'php-composer')
optdepends=('ffmpeg: all transcoding/downsampling'
'lame: mp3 transcoding/downsampling'
'vorbis-tools: ogg transcoding/downsampling'
'flac: flac transcoding/downsampling'
'faad2: m4a transcoding/downsampling'
'mp3splt: mp3, ogg and flac downsampling')
conflicts=('ampache' 'ampache-development')
install=${_gitname}.install
source=(git://github.com/${_gitname}/${_gitname}.git 'nginx-example.conf')
sha256sums=('SKIP'
'efb63c0ac7e6462ee5c705b9c1998a1d2462502e19e7e5c97fce2c5142b8e62e')
pkgver() {
cd ${_gitname}
git describe --long --tags | sed 's|-|.|g'
}
build() {
echo "" > /dev/null
}
package() {
cd ${srcdir}/${_gitname}
mkdir -p ${pkgdir}/srv/http/${_gitname}
cp -a * ${pkgdir}/srv/http/${_gitname}/
cd ${pkgdir}/srv/http/${_gitname}
composer install --prefer-source --no-interaction
mkdir -p ${pkgdir}/usr/share/doc/${_gitname}
install -D -m644 ${srcdir}/nginx-example.conf ${pkgdir}/usr/share/doc/${_gitname}/
}

View File

@ -1,25 +0,0 @@
post_install() {
cat << EOF
==> If you want to use Ampache's transcoding and/or downsampling you'll
need the packages specified in optdepends.
Check out http://wiki.archlinux.org/index.php/Ampache and
https://github.com/ampache/ampache/wiki/Transcoding for more info.
==> Please enable curl, iconv and pdo_mysql modules in php.ini.
==> Database will be upgraded automatically in case of update from 3.7.
Check out https://github.com/ampache/ampache/wiki/Installation for
more info about installation process.
==> An nginx example vhost in provided in /usr/share/doc/ampache/nginx-example.conf
To use it, follow following instructions :
* Copy the file to /etc/nginx/ampache.conf
* Customize server_name directive using your FQDN
* Add all your music local directories to open_basedir directive
* Add this line to /etc/nginx/nginx.conf :
include ampache.conf;
* Reload nginx using : systemctl reload nginx
EOF
/bin/true
}
post_upgrade() {
post_install
}

View File

@ -1,95 +0,0 @@
server {
listen 80;
server_name FQDN;
charset utf-8;
root /srv/http/ampache;
index index.php;
access_log /var/log/nginx/ampache.access.log;
error_log /var/log/nginx/ampache.error.log;
client_max_body_size 1G;
client_body_buffer_size 128k;
# Rewrite rule for Subsonic backend
if ( !-d $request_filename ) {
rewrite ^/rest/(.*).view$ /rest/index.php?action=$1 last;
rewrite ^/rest/fake/(.+)$ /play/$1 last;
}
# Rewrite rule for Plex backend
if ( !-d $request_filename ) {
rewrite ^/plex/(.*)$ /plex/index.php?action=$1 last;
}
# Rewrite rule for Channels
if (!-d $request_filename){
rewrite ^/channel/([0-9]+)/(.*)$ /channel/index.php?channel=$1&target=$2 last;
}
# Beautiful URL Rewriting
rewrite ^/play/ssid/(\w+)/type/(\w+)/oid/([0-9]+)/uid/([0-9]+)/name/(.*)$ /play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&name=$5 last;
rewrite ^/play/ssid/(\w+)/type/(\w+)/oid/([0-9]+)/uid/([0-9]+)/client/(.*)/noscrobble/([0-1])/name/(.*)$ /play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&name=$7 last;
location /play {
if (!-e $request_filename) {
rewrite ^/play/art/([^/]+)/([^/]+)/([0-9]+)/thumb([0-9]*)\.([a-z]+)$ /image.php?object_type=$2&object_id=$3&auth=$1;
break;
}
rewrite ^/([^/]+)/([^/]+)(/.*)?$ /play/$3?$1=$2;
rewrite ^/(/[^/]+|[^/]+/|/?)$ /play/index.php last;
break;
}
location /rest {
limit_except GET POST {
deny all;
}
}
location /plex {
limit_except GET POST {
deny all;
}
}
location ^~ /bin/ {
deny all;
return 403;
}
location ^~ /config/ {
deny all;
return 403;
}
location / {
limit_except GET POST HEAD{
deny all;
}
}
location ~ ^/.*.php {
# PHP config...
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param PHP_ADMIN_VALUE "open_basedir=/tmp/:/srv/http/ampache/:/var/log:/usr/bin";
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
}
# Rewrite rule for WebSocket
location /ws {
rewrite ^/ws/(.*) /$1 break;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8100/;
}
}

View File

@ -1,44 +0,0 @@
# Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be>
# Contributors: Keshav P R, atommix aka Aleks Lifey, Xavion, Ananda Samaddar, Dan Serban, Xyne
pkgname=jitsi
pkgver=2.10.5550
pkgrel=5
pkgdesc="An audio/video SIP VoIP phone and instant messenger written in Java (formerly SIP-Communicator)"
arch=('i686' 'x86_64')
url="http://jitsi.org"
license=('apache')
depends=('java-runtime=8')
makedepends=('apache-ant' 'java-environment-common' 'java-environment=8')
options=(!strip !emptydirs zipman !libtool docs)
source=("https://download.jitsi.org/jitsi/src/jitsi-src-${pkgver}.zip"
jitsi.desktop
jitsi.sh)
sha256sums=('cdfc6f038d1b877c42d26dba1864ac7c6b554dd55c18767a29f2db3618647287'
'40a411ec494280490a0e1a137735ef5efca434d8d10f18b0124df9e93302f959'
'c47bfa98fe36378f2e7b947cd248582f5a90c1b169d53d158badb00439fdc6c7')
build()
{
cd "${srcdir}/${pkgname}"
# append the build revision to the jitsi version
sed -i "s/0\.build\.by\.SVN/build.${pkgver}/" src/net/java/sip/communicator/impl/version/NightlyBuildID.java
. /etc/profile.d/apache-ant.sh
ant rebuild
}
package() {
cd "${srcdir}/${pkgname}"
find lib/ lib/bundle/ -maxdepth 1 -type f -exec install -Dm644 {} "${pkgdir}/usr/lib/${pkgname}/"{} \;
# find lib/os-specific/linux/ -maxdepth 1 -type f -execdir install -Dm644 {} "${pkgdir}/usr/lib/${pkgname}/lib/"{} \;
shopt -sq extglob
find lib/native/linux$(sed 's/_/-/g' <<<${CARCH/#*(i?86|x86)/})/ -maxdepth 1 -type f -execdir install -Dm644 {} "${pkgdir}/usr/lib/${pkgname}/lib/native/"{} \;
find sc-bundles/{,os-specific/linux/} -maxdepth 1 -type f -execdir install -Dm644 {} "${pkgdir}/usr/lib/${pkgname}/sc-bundles/"{} \;
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
cd "resources/install/debian/"
for _file in *.{svg,xpm}; do
install -Dm644 "$_file" "${pkgdir}/usr/share/pixmaps/${_file}"
done
}

View File

@ -1,10 +0,0 @@
[Desktop Entry]
Encoding=UTF-8
Name=Jitsi
GenericName=jitsi
Comment=VoIP and Instant Messaging client
Icon=jitsi
Type=Application
Categories=Network
Exec=/usr/bin/jitsi
Terminal=false

View File

@ -1,23 +0,0 @@
#!/bin/bash
CLIENTARGS=""
uname -m | grep i686 && CLIENTARGS="-client -Xmx256m"
if [[ -n ${JAVA_HOME} ]]; then
JAVABIN="${JAVA_HOME}/bin/java"
else
JAVABIN="java"
fi
SCDIR=/usr/lib/jitsi
LIBPATH="${SCDIR}/lib"
CLASSPATH="${LIBPATH}/felix.jar:${SCDIR}/sc-bundles/sc-launcher.jar:${SCDIR}/sc-bundles/util.jar:${SCDIR}/sc-bundles/dnsjava.jar:${LIBPATH}"
FELIX_CONFIG="${LIBPATH}/felix.client.run.properties"
LOG_CONFIG="${LIBPATH}/logging.properties"
COMMAND="${JAVABIN} ${CLIENTARGS} -classpath ${CLASSPATH} -Djna.library.path=${LIBPATH}/native -Dfelix.config.properties=file:${FELIX_CONFIG} -Djava.util.logging.config.file=${LOG_CONFIG} net.java.sip.communicator.launcher.SIPCommunicator"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${LIBPATH}/native"
cd "${SCDIR}"
exec ${COMMAND} $*

View File

@ -1,4 +0,0 @@
/pkg/
/src/
*.tar*
.directory

View File

@ -1,36 +0,0 @@
# Maintainer: Colin Duquesnoy <colin.duquesnoy@gmail.com>
# Maintainer: ZeroDot1 <zerodot1@bk.ru>
pkgname=mellowplayer
_pkgname=MellowPlayer
pkgver=3.5.2
pkgrel=2
pkgdesc="Open source and cross-platform desktop application that runs web-based music streaming
services in its own window and provides integration with your desktop."
url='https://github.com/ColinDuquesnoy/MellowPlayer'
license=('GPL')
arch=('x86_64')
depends=('qt5-base' 'qt5-webengine' 'qt5-svg' 'qt5-quickcontrols2' 'qt5-quickcontrols' 'qt5-translations' 'qt5-graphicaleffects' 'xdg-utils' 'libnotify' 'libevent')
makedepends=('qt5-tools' 'cmake' 'mesa')
optdepends=( 'qt5-webengine-widevine: DRM needed for Spotify' 'pepper-flash: needed for Tidal and Deezer')
source=("https://gitlab.com/ColinDuquesnoy/MellowPlayer/-/archive/${pkgver}/MellowPlayer-${pkgver}.tar.gz"
"widevine-path.patch")
md5sums=('604a33c9f3608ee7403675969c1de902'
'67f8c5c6af4b770a4017a5ca9f137b90')
prepare() {
cd $srcdir/MellowPlayer-${pkgver}
patch -Np1 -i "${srcdir}/widevine-path.patch" "$srcdir/MellowPlayer-${pkgver}/src/main/share/applications/mellowplayer.desktop"
}
build() {
cd $srcdir/MellowPlayer-${pkgver}
export MAKEFLAGS="-j$(nproc)"
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .
make
}
package() {
cd $srcdir/MellowPlayer-${pkgver}
make DESTDIR=${pkgdir} install
}

View File

@ -1,11 +0,0 @@
--- src/share/applications/mellowplayer.desktop 2017-12-18 19:35:26.705475288 +0100
+++ src/share/applications/mellowplayer.desktop 2017-12-18 21:19:48.807747384 +0100
@@ -3,7 +3,7 @@
Version=1.0
Type=Application
Name=MellowPlayer
-Exec=MellowPlayer
+Exec=MellowPlayer --ppapi-widevine-path=/usr/lib/qt/plugins/ppapi/libwidevinecdmadapter.so
TryExec=MellowPlayer
Icon=mellowplayer
Terminal=false