# # Apps Packages for Chakra, part of chakra-project.org # # maintainer (i686): Phil Miller # maintainer (x86_64): Manuel Tortosa _pkgname=kradio4 pkgname=kradio pkgver=4.0.4 pkgrel=1 arch=('i686' 'x86_64') license=('GPL2') pkgdesc="KRadio is a comfortable KDE radio application." url="http://kradio.sourceforge.net/" depends=('lame' 'kdelibs' 'libsndfile' 'lirc-utils' 'libmms' 'ffmpeg') makedepends=('pkgconfig' 'automoc4') options=(!libtool) source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${_pkgname}-${pkgver}.tar.bz2") md5sums=('4b5495a4f1dda21f7201bc8db0d4f95e') build() { cd "${srcdir}" mkdir -p build && cd build # This is needed because the naming of those definitions has changed # in newer ffmpeg versions. CXXFLAGS="${CXXFLAGS} -DCODEC_TYPE_VIDEO=AVMEDIA_TYPE_VIDEO" CXXFLAGS="${CXXFLAGS} -DCODEC_TYPE_AUDIO=AVMEDIA_TYPE_AUDIO" CXXFLAGS="${CXXFLAGS} -DCODEC_TYPE_DATA=AVMEDIA_TYPE_DATA" export CXXFLAGS cmake "../${_pkgname}-${pkgver}" \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS="${CXXFLAGS}" make } package() { cd "${srcdir}/build" make DESTDIR="${pkgdir}" install }