summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/gnash-git/PKGBUILD73
-rw-r--r--pcr/gnash-git/gnash.install17
2 files changed, 90 insertions, 0 deletions
diff --git a/pcr/gnash-git/PKGBUILD b/pcr/gnash-git/PKGBUILD
new file mode 100644
index 000000000..2f8a802ad
--- /dev/null
+++ b/pcr/gnash-git/PKGBUILD
@@ -0,0 +1,73 @@
+# Maintainer: Tim Van den Langenbergh <tmt_vdl@gmx.com>
+# Contributor: Omar Botta <omarbotta@gnulinuxlibre.net>
+# Contributor: Carlos Sanchez <cargabsj175@vegnux.org.ve>
+# Contributor: Frederic Bezies <fredbezies@gmail.com>
+
+pkgname=gnash-git
+_gitname=gnash
+pkgver=0.8.11.r22270.g84f8bfd
+pkgrel=1
+pkgdesc="The GNU SWF Player based on GameSWF - git development version"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/gnash/"
+license=('GPL3')
+depends=('curl' 'giflib' 'sdl' 'libjpeg' 'libpng' 'libltdl' 'libgl'
+ 'glu' 'speex' 'fontconfig' 'cairo' 'ffmpeg' 'jemalloc' 'boost-libs'
+ 'gtk2' 'libldap' 'hicolor-icon-theme' 'desktop-file-utils' 'gconf'
+ 'gtkglext' 'agg')
+makedepends=('mesa' 'xulrunner' 'pkgconfig' 'boost' 'git')
+provides=('gnash-common' 'gnash-gtk')
+conflicts=('gnash-common' 'gnash-gtk')
+replaces=('gnash-common' 'gnash-gtk')
+options=('!emptydirs')
+install=$_gitname.install
+backup=('etc/gnashpluginrc')
+source=("libre://$pkgname-$pkgver.tar.gz")
+md5sums=('efe95a81cc3bc4316f5d3567d821d15d')
+
+mksource=('git://git.sv.gnu.org/gnash.git')
+mkmd5sums=('SKIP')
+
+pkgver() {
+ cd $_gitname
+
+ echo "0.8.11.r$(git rev-list --count master).g$(git log -1 --format="%h")"
+}
+
+prepare() {
+ cd $_gitname
+
+ chmod +x autogen.sh
+ ./autogen.sh
+}
+
+build() {
+ cd $_gitname
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-plugins-install=system \
+ --with-npapi-plugindir=/usr/lib/mozilla/plugins \
+ --enable-gui=sdl,gtk \
+ --enable-media=ffmpeg \
+ --enable-renderer=all \
+ --enable-device=x11
+
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
+
+ make
+}
+
+package() {
+ cd $_gitname
+
+ make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install install-plugin
+
+ install -m755 -d "$pkgdir/usr/share/gconf/schemas"
+
+ gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/gnash.schemas" --domain gnash \
+ "$pkgdir"/usr/share/applications/*.schemas
+
+ rm -f "$pkgdir"/usr/share/applications/*.schemas
+}
diff --git a/pcr/gnash-git/gnash.install b/pcr/gnash-git/gnash.install
new file mode 100644
index 000000000..7716efc65
--- /dev/null
+++ b/pcr/gnash-git/gnash.install
@@ -0,0 +1,17 @@
+post_install() {
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+pre_upgrade() {
+ pre_remove
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}