1 # Contributor: zoulnix <http://goo.gl/HQaP>
2 pkgname=ultrastardx-svn
5 pkgdesc="UltraStar Deluxe (USDX) is a free and open source karaoke game."
7 url="http://ultrastardeluxe.org/"
9 depends=('ffmpeg' 'libpng12' 'lua' 'portaudio' 'sdl_image' 'sqlite3' 'ttf-dejavu' 'ttf-freefont' 'wqy-microhei')
10 makedepends=('fpc' 'gcc' 'make' 'pkg-config' 'subversion')
12 provides=('ultrastardx')
13 conflicts=('ultrastardx')
19 _svntrunk="https://ultrastardx.svn.sourceforge.net/svnroot/ultrastardx/trunk"
25 msg "Getting sources..."
26 if [ -d ${_svnmod}/.svn ]; then
27 cd ${_svnmod} && svn up -r ${pkgver}
29 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
33 msg "SVN checkout done or server timeout"
34 msg "Starting make..."
37 export libpng_VERSION=12
38 export libavcodec_VERSION=52.86.0
39 export libavformat_VERSION=52.78.0
40 export libavutil_VERSION=50.24.0
41 export libswscale_VERSION=0.11.0
43 ./configure --prefix=/usr \
45 --localstatedir=/var \
48 make LDFLAGS="" || return 1
52 cd ${srcdir}/${_svnmod}
53 install -d ${pkgdir}/usr/share/{applications,pixmaps} || return 1
55 make LDFLAGS="" DESTDIR=${pkgdir} install || return 1
57 install -m644 dists/${_svnmod}.desktop \
58 ${pkgdir}/usr/share/applications/ || return 1
59 install -m644 ${pkgdir}/usr/share/${_svnmod}/resources/icons/${_svnmod}-icon.png \
60 ${pkgdir}/usr/share/pixmaps/${_svnmod}.png || return 1
63 rm ${pkgdir}/usr/share/${_svnmod}/fonts/*/*.tt*
64 ln -s /usr/share/fonts/TTF/DejaVuSans.ttf ${pkgdir}/usr/share/${_svnmod}/fonts/DejaVu/ || return 1
65 ln -s /usr/share/fonts/TTF/DejaVuSans-Bold.ttf ${pkgdir}/usr/share/${_svnmod}/fonts/DejaVu/ || return 1
66 ln -s /usr/share/fonts/TTF/FreeSans.ttf ${pkgdir}/usr/share/${_svnmod}/fonts/FreeSans/ || return 1
67 ln -s /usr/share/fonts/TTF/FreeSansBold.ttf ${pkgdir}/usr/share/${_svnmod}/fonts/FreeSans/ || return 1
68 ln -s /usr/share/fonts/wenquanyi/wqy-microhei/wqy-microhei.ttc ${pkgdir}/usr/share/${_svnmod}/fonts/wqy-microhei/ || return 1
70 # Removing unnecessary stuff
71 find ${pkgdir} -type f -name "AUTHORS*" -exec rm {} \;
72 find ${pkgdir} -type f -name "COPYING*" -exec rm {} \;
73 find ${pkgdir} -type f -name "CREDITS" -exec rm {} \;
74 find ${pkgdir} -type f -name "LICENSE*" -exec rm {} \;
75 find ${pkgdir} -type f -name "README*" -exec rm {} \;