desktop/clementine/PKGBUILD
2014-02-26 01:25:06 +00:00

47 lines
1.6 KiB
Bash

# Contributor: Giuseppe Calà <jiveaxe@gmail.com>
# Maintainer: Bruce Liu <rainman59118@gmail.com>
pkgname=clementine
_pkgname=Clementine
pkgver=1.2.2
pkgrel=1
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' 'liblastfm' 'libgpod' 'libmtp' 'libplist'
'hicolor-icon-theme' 'qtwebkit' 'libimobiledevice' 'qjson' 'glew' 'protobuf'
'libcdio' 'qca' 'qca-ossl' 'chromaprint')
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')
categories=('multimedia')
source=("https://github.com/clementine-player/${_pkgname}/archive/${pkgver}.tar.gz"
"${pkgname}-unistd.patch")
sha1sums=('9ab4110ea35185701cfc6b56863c991784c12134'
'edd8d0148cf04ba1321492be208699a9b8007967')
prepare() {
cd Clementine-${pkgver}
patch -Np1 -i ../${pkgname}-unistd.patch
}
build() {
cd ${_pkgname}-${pkgver}
mkdir -p build && cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DSTATIC_SQLITE=ON
make
}
package() {
cd ${_pkgname}-${pkgver}/build
make install DESTDIR="${pkgdir}"
}