mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 09:17:16 +08:00
clementine-qt5: cp from clementine
This commit is contained in:
parent
e11c0093a0
commit
3f53e43924
47
clementine-qt5/PKGBUILD
Normal file
47
clementine-qt5/PKGBUILD
Normal file
@ -0,0 +1,47 @@
|
||||
pkgname=clementine
|
||||
_pkgname=Clementine
|
||||
pkgver=1.2.3
|
||||
pkgrel=10
|
||||
pkgdesc="A modern music player and library organiser and a port of Amarok 1.4, with some features rewritten to take advantage of Qt4."
|
||||
url="http://www.clementine-player.org/"
|
||||
screenshot="http://images.clementine-player.org/screenshots/clementine-1.0-3.png"
|
||||
license="GPL"
|
||||
arch=('x86_64')
|
||||
install=${pkgname}.install
|
||||
depends=('gstreamer0.10-base' 'taglib' 'glew>=1.10.0' 'liblastfm-qt4' 'libgpod' 'libmtp' 'libplist'
|
||||
'hicolor-icon-theme' 'qtwebkit' 'libimobiledevice' 'qjson' 'protobuf'
|
||||
'libcdio' 'qca' 'qca-ossl' 'chromaprint' 'libmygpo-qt' 'libechonest-qt4')
|
||||
makedepends=('cmake' 'boost' 'mesa')
|
||||
optdepends=('gstreamer0.10-base-plugins: for more open formats'
|
||||
'gstreamer0.10-good-plugins: for use with "Good" plugin libraries'
|
||||
'gstreamer0.10-bad-plugins: for use with "Bad" plugin libraries'
|
||||
'gstreamer0.10-ugly-plugins: for use with "Ugly" plugin libraries'
|
||||
'libmygpo-qt: add support for gpodder.net'
|
||||
'libspotify: add support for Spotify, due to license restriction, please build it
|
||||
with ccr yourself'
|
||||
'dropbox: add support for Dropbox')
|
||||
categories=('multimedia')
|
||||
source=("https://github.com/clementine-player/${_pkgname}/archive/${pkgver}.tar.gz"
|
||||
"clementine-udisks-headers.patch")
|
||||
sha1sums=('2a27eda3a13185ba9f0f7b75dcf7173e6828384a'
|
||||
'7a33cbcbf7cb06d2c5bea1b7757e9ba58c4f4869')
|
||||
|
||||
prepare() {
|
||||
cd ${_pkgname}-${pkgver}
|
||||
patch -Np1 -i "../clementine-udisks-headers.patch" || return 1
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${_pkgname}-${pkgver}
|
||||
mkdir -p build && cd build
|
||||
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_WERROR=OFF \
|
||||
-DSTATIC_SQLITE=ON
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${_pkgname}-${pkgver}/build
|
||||
make install DESTDIR="${pkgdir}"
|
||||
}
|
21
clementine-qt5/clementine-udisks-headers.patch
Normal file
21
clementine-qt5/clementine-udisks-headers.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 1104542..65d765c 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -887,7 +887,6 @@ if(HAVE_DBUS)
|
||||
# Hack to get it to generate interfaces without namespaces - required
|
||||
# because otherwise org::freedesktop::UDisks and
|
||||
# org::freedesktop::UDisks::Device conflict.
|
||||
- list(APPEND QT_DBUSXML2CPP_EXECUTABLE -N)
|
||||
|
||||
# MPRIS DBUS interfaces
|
||||
qt4_add_dbus_adaptor(SOURCES
|
||||
@@ -954,6 +953,8 @@ if(HAVE_DBUS)
|
||||
list(APPEND HEADERS ${CMAKE_CURRENT_BINARY_DIR}/dbus/avahientrygroup.h)
|
||||
list(APPEND SOURCES ${CMAKE_CURRENT_BINARY_DIR}/dbus/avahientrygroup.cpp)
|
||||
|
||||
+ set_source_files_properties( dbus/org.freedesktop.UDisks.xml dbus/org.freedesktop.UDisks.Device.xml PROPERTIES NO_NAMESPACE TRUE)
|
||||
+
|
||||
# DeviceKit DBUS interfaces
|
||||
if(HAVE_DEVICEKIT)
|
||||
qt4_add_dbus_interface(SOURCES
|
14
clementine-qt5/clementine.install
Normal file
14
clementine-qt5/clementine.install
Normal file
@ -0,0 +1,14 @@
|
||||
pkgname=clementine
|
||||
|
||||
post_install() {
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
}
|
||||
|
||||
|
||||
post_remove() {
|
||||
post_install $1
|
||||
}
|
Loading…
Reference in New Issue
Block a user