desktop/kradio/PKGBUILD

47 lines
1.3 KiB
Bash
Raw Normal View History

2010-10-05 04:37:43 +08:00
#
2012-02-22 08:44:57 +08:00
# Apps Packages for Chakra, part of chakra-project.org
2010-10-05 04:37:43 +08:00
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2012-01-08 09:02:14 +08:00
_pkgname=kradio4
2010-10-05 04:37:43 +08:00
pkgname=kradio
2012-02-22 08:44:57 +08:00
pkgver=4.0.4
pkgrel=1
2010-10-05 04:37:43 +08:00
arch=('i686' 'x86_64')
license=('GPL2')
2012-01-08 09:02:14 +08:00
pkgdesc="KRadio is a comfortable KDE radio application."
2010-10-05 04:37:43 +08:00
url="http://kradio.sourceforge.net/"
2011-01-23 00:04:58 +08:00
depends=('lame' 'kdelibs' 'libsndfile' 'lirc-utils' 'libmms' 'ffmpeg')
makedepends=('pkgconfig' 'automoc4')
options=(!libtool)
2012-01-08 09:02:14 +08:00
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${_pkgname}-${pkgver}.tar.bz2")
2012-02-22 08:44:57 +08:00
md5sums=('4b5495a4f1dda21f7201bc8db0d4f95e')
2010-10-05 04:37:43 +08:00
build() {
2012-01-08 09:02:14 +08:00
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}"
2011-01-23 00:04:58 +08:00
make
2010-10-05 04:37:43 +08:00
}
package() {
2012-01-08 09:02:14 +08:00
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
2010-10-05 04:37:43 +08:00
}
2012-01-08 09:02:14 +08:00