core/gnash/PKGBUILD

60 lines
2.0 KiB
Bash
Raw Normal View History

2010-10-21 07:47:31 +08:00
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=gnash
pkgver=0.8.9
2012-01-14 07:08:24 +08:00
pkgrel=5
pkgdesc="GNU Flash player and kpath plugin for KDE 4."
2010-10-21 07:47:31 +08:00
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/gnash/"
license=('GPL')
2011-06-26 06:23:47 +08:00
depends=('agg' 'ffmpeg' 'libjpeg' 'libpng' 'giflib' 'zlib' 'curl' 'giflib' 'boost-libs' 'libldap' 'sdl'
'speex' 'fontconfig' 'libva' 'libxinerama' 'gstreamer0.10-base' 'gstreamer0.10-ffmpeg'
2011-11-18 04:46:42 +08:00
'libdca' 'kdebase' 'xulrunner' 'hicolor-icon-theme' 'desktop-file-utils' 'pkgconfig' 'libtool')
2011-06-26 06:23:47 +08:00
makedepend=('boost')
2010-10-21 07:47:31 +08:00
provides=('gnash' 'gnash-common')
conflicts=('flashplugin' 'flashplugin-square')
2010-10-21 09:28:16 +08:00
options=(!libtool !emptydirs)
2011-11-18 04:46:42 +08:00
backup=(etc/gnashrc)
source=("http://ftp.gnu.org/gnu/gnash/${pkgver}/gnash-${pkgver}.tar.bz2"
"http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-plugins/gnash/files/gnash-0.8.9-ffmpeg-detection.patch")
md5sums=('5b2be6b04a1bcc5fb404cc377034499e'
'def95689fea9a8558f78ea8c18ef5281')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i "$srcdir/gnash-0.8.9-ffmpeg-detection.patch"
./autogen.sh
sed -i "s/moc-qt4/moc/g; s/uic-qt4/uic/g" configure
./configure \
--enable-renderer=agg \
--enable-media=gst \
--enable-gui=kde4 \
2011-11-18 04:46:42 +08:00
--enable-sound=sdl \
--enable-hwaccel=vaapi \
--with-plugins-install=system \
--with-npapi-plugindir=/usr/lib/mozilla/plugins \
--prefix=/usr \
--sysconfdir=/etc
sed -i "s:KDE4_APPSDATADIR =.*:KDE4_APPSDATADIR = /usr/share/apps:" ./plugin/klash4/Makefile
sed -i "s:KDE4_SERVICESDIR =.*:KDE4_SERVICESDIR = /usr/share/kde4/services:" ./plugin/klash4/Makefile
sed -i "s:KDE4_PLUGINDIR =.*:KDE4_PLUGINDIR = /usr/lib/kde4:" ./plugin/klash4/Makefile
2011-11-18 04:46:42 +08:00
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
2011-11-18 04:46:42 +08:00
make DESTDIR="${pkgdir}" install
make DESTDIR="${pkgdir}" install-plugins
}
# vim:set ts=2 sw=2 et: