1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
6 pkgdesc="Development version of a music player for KDE3 (based on Xine)"
8 url="http://falf.sourceforge.net/"
10 depends=('kdelibs3' 'taglib' 'qt3' 'xine-lib')
11 makedepends=('findutils' 'patch' 'subversion' 'sqlite3')
15 source=($pkgname-build.patch)
16 sha256sums=('8edc7764c463a829501b9588378c0188654e3335f96a910351a3ecbe955d00c0')
18 _svntrunk=https://falf.svn.sourceforge.net/svnroot/falf
22 # !!! if ERRORS or using KDEmod uncomment next 2 lines !!!
23 # export QTDIR=/opt/qt
24 # export QMAKESPEC=/opt/qt/mkspecs/linux-g++
29 msg "Connecting to $_svntrunk ..."
30 if [ -d $_svnmod/.svn ]; then
31 (cd $_svnmod && svn up -r $pkgver) || return 1
33 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return 1
35 msg "SVN checkout done or server timeout"
37 if [ -d ${_svnmod}-build ]; then
38 msg "Deleting old build directory"
39 rm -rf ${_svnmod}-build
41 cp -r ${_svnmod} ${_svnmod}-build || return 1
43 msg "Setting up build environment..."
47 install -d ${pkgdir}/opt/kde/bin \
48 ${pkgdir}/opt/kde/share/locale/{cs,es,it,nl,pl,ru,uk,zh_CN}/LC_MESSAGES/ \
49 ${pkgdir}/opt/kde/share/{applnk/Multimedia,apps/konqueror/servicemenus,icons/default.kde}
51 # sed -i 's:$(kde-config --prefix):$(cd ../../pkg/opt/kde && pwd):' install.sh
52 patch -Np0 -i $srcdir/$pkgname-build.patch
55 # correcting file permissions
56 find ${pkgdir}/opt/kde/share -type f -exec chmod 644 "{}" \;
58 # remove all svn related files installed
59 rm -rf `find ${pkgdir} -type d -name .svn`
61 rm -rf $srcdir/$_svnmod-build