blob: 4d8b154883f72dee8a652d34710a44521512f23c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Maintainer: Adria Arrufat <adria.arrufat+AUR@protonmail.ch>
# Contributor: Limao Luo <luolimao+AUR@gmail.com>
# Contributor: Thomas Dziedzic <gostrc@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
_pkgname=rhythmbox
pkgname=$_pkgname-git
pkgver=3.3.0.r31.g11c6fd7
pkgrel=1
pkgdesc="Music playback and management application"
arch=(i686 x86_64)
license=(GPL2)
url=http://www.rhythmbox.org
depends=(dconf desktop-file-utils gst-plugins-base gst-plugins-good libsoup json-glib libnotify libpeas media-player-info totem-plparser tdb webkitgtk3 libgudev)
makedepends=(itstool intltool brasero gobject-introspection vala grilo libdmapsharing lirc libgpod libmtp gtk-doc)
optdepends=('gst-plugins-ugly: Extra media codecs'
'gst-plugins-bad: Extra media codecs'
'gst-libav: Extra media codecs'
'brasero: Audio CD Recorder plugin'
'libdmapsharing: DAAP Music Sharing plugin'
'grilo-plugins: Grilo media browser plugin'
'lirc: LIRC plugin'
'libgpod: Portable Players - iPod plugin'
'libmtp: Portable Players - MTP plugin'
'python-mako: Context pane plugin')
provides=($_pkgname=$pkgver)
conflicts=($_pkgname)
options=(!emptydirs)
install=$_pkgname.install
source=($pkgname::git+https://git.gnome.org/browse/$_pkgname)
sha256sums=('SKIP')
pkgver() {
cd $pkgname/
# count the number of dots and add a 0 to the version if there's only 1
dots=`git describe | grep -o '\.' | wc -l`
if [ ${dots} -eq 1 ]
then
git describe | sed 's/^v//;s/\([^-]*-g\)/0.r\1/;s/-/./g'
else
git describe | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
fi
}
prepare() {
cd $pkgname/
dots=`git describe | grep -o '\.' | wc -l`
# reset to the original version so that regex works
git checkout configure.ac
# use a different regex depending on the version
if [ ${dots} -eq 1 ]
then
sed "{:q;N;s/(\[rhythmbox\],\n\t\[\([0-9]\).\([0-9]\)\],/(\[rhythmbox\],\n\t[$pkgver],/g;t q}" -i configure.ac
else
sed "{:q;N;s/(\[rhythmbox\],\n\t\[\([0-9]\).\([0-9]\).\([0-9]\)\],/(\[rhythmbox\],\n\t[$pkgver],/g;t q}" -i configure.ac
fi
}
build() {
cd $pkgname/
# export CFLAGS+=" -g -O1"
# export CXXFLAGS+=" -g -O1"
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc \
--libexecdir=/usr/lib/rhythmbox \
--localstatedir=/var --disable-static \
--enable-daap --enable-python --enable-vala \
--disable-Werror
make
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
rm -r "$pkgdir/usr/lib/rhythmbox/sample-plugins"
rm -r "$pkgdir/usr/lib/rhythmbox/plugins/rbzeitgeist"
}
|