updated on Mon Jan 16 16:00:41 UTC 2012
[aur-mirror.git] / amarok1 / PKGBUILD
blobc1963f53650f164476bed805a77ed6d7808cfc3e
1 # Maintainer: Juanma Hernández <juanmah@gmail.com>
3 pkgname=amarok1
4 _origname=amarok
5 pkgver=1.4.10
6 pkgrel=11
7 pkgdesc="amaroK - a media player for KDE - v1.4.10 xine engine with wikipedia patch (single package)"
8 arch=("i686" "x86_64")
9 url="http://amarok.kde.org"
10 license=('GPL')
11 depends=('xine-lib>=1.1.3' 'libmysqlclient>=5.0.45' 'libnjb>=2.2.5' 'postgresql-libs>=8.2.4' 'ruby' 'tunepimp>=0.5.3' 'kdelibs3>=3.5.7' 'libgpod>=0.6.0'  'libifp>=1.0.0.2' 'libvisual>=0.4.0' 'libmtp')
12 makedepends=('kdelibs3' 'libmtp>=0.2.6.1' 'xine-lib>=1.1.8' 'sdl>=1.2.12' 'gcc43')
13 provides=('amarok1')
14 options=(!makeflags)
15 install=amarok.install
16 source=("ftp://ftp.slackware.at/slackware-12.2/source/kde/amarok/$_origname-$pkgver.tar.bz2"
17         "amarok_addaspodcast.desktop"
18         "wikipedia.patch"
19         "libmtp.patch"
20 #        "gcc44.patch"
21 #        "gcc45.patch"
22         "amarok-1.4.10.coverfetcher.diff"
23         "ruby19_configure2.patch"
24         "ruby19_rstring.patch")
25 md5sums=('3bdbf26181bf5e5925f48968caba7ac2'
26          '7736a7e3e22b15818180df3cee7e4a79'
27          'a93eb0dad2078afa045a69f38256b369'
28          '02eb286127594b9427d27da7eb01f0de'
29 #         'cfa9310dec03c33048e5a067a0334266'
30 #         'c441d4711f2c0ffc28a4a0b9757d397b'
31          'f4e8754cde659342bdfd3fca36612bb5'
32          'e3c5201663052b4f346d5002a196421a'
33          '2a7ac1f359eb3cdb8bf724c8be660295')
35 build() {
36   for patch in "$srcdir"/*.{diff,patch}; do
37     patch -Np0 < "$patch"
38   done
40   cd "$srcdir/$_origname-$pkgver"
42 #  . /etc/profile.d/qt3.sh
43 #  . /etc/profile.d/kde3.sh
45 [ "$QTDIR" = "" ] && source /etc/profile.d/qt3.sh 
46 [ "$KDEDIR" = "" ] && source /etc/profile.d/kde3.sh
49   # prepare build
50   ./configure CC=gcc-4.3 CXX=g++-4.3 --prefix=/opt/kde \
51       --with-gnu-ld \
52       --enable-mysql \
53       --enable-postgresql \
54       --with-mp4v2 \
55       --with-ifp \
56       --with-libmtp \
57       --with-libnjb \
58       --with-libgpod \
59       --without-arts \
60       --without-gstreamer \
61       --with-xine \
62       --without-nmm \
63       --without-mas \
64       --with-libvisual \
65       --disable-debug \
66       --enable-debug=no \
67       --without-xmms
69   # build
70   sed -i -e 's/konquisidebar//g' amarok/src/Makefile
72   make
75 package() {
76   cd "$srcdir/$_origname-$pkgver"
78   make DESTDIR="$pkgdir" install
80   mkdir -p "$pkgdir/opt/kde/share/apps/konqueror/servicemenus/"
81   install -m644 "$srcdir/amarok_addaspodcast.desktop" "$pkgdir/opt/kde/share/apps/konqueror/servicemenus/"