summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/lightspark-git/PKGBUILD46
-rw-r--r--pcr/lightspark-git/lightspark-git.install (renamed from pcr/lightspark/lightspark.install)3
-rw-r--r--pcr/lightspark/PKGBUILD33
3 files changed, 48 insertions, 34 deletions
diff --git a/pcr/lightspark-git/PKGBUILD b/pcr/lightspark-git/PKGBUILD
new file mode 100644
index 000000000..51d513920
--- /dev/null
+++ b/pcr/lightspark-git/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer (Arch): Daniel Lanadu <daniel+aur@landau.fi>
+# Contributor (Arch): sekret, mail=$(echo c2VrcmV0QHBvc3Rlby5zZQo= | base64 -d)
+# Contributor (Arch): mmm
+# Contributor (Arch): bslackr <brendan at vastactive dot com>
+# Contributor (Arch): Jan "heftig" Steffens <jan.steffens@gmail.com>
+# Contributor (Arch): Thomas Dziedzic < gostrc at gmail >
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+_pkgname=lightspark
+pkgname=$_pkgname-git
+pkgver=0.7.2.r461.g10b91ea
+pkgrel=1.1
+pkgdesc="An open source flash player implementation"
+arch=('i686' 'x86_64')
+url="http://lightspark.sourceforge.net"
+license=('LGPL3')
+depends=('gtk2' 'boost-libs' 'glew' 'ffmpeg' 'curl' 'desktop-file-utils' 'rtmpdump' 'sdl_mixer' 'glibmm')
+makedepends=('git' 'cmake' 'nasm' 'llvm' 'boost')
+optdepends=('gnash-gtk: Gnash fallback support')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+install=$pkgname.install
+source=("$_pkgname::git+https://github.com/lightspark/lightspark.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --long --tags | sed -r 's/^lightspark-//;s/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$_pkgname"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCOMPILE_PLUGIN=1 \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DGNASH_EXE_PATH=/usr/bin/gtk-gnash \
+ -DAUDIO_BACKEND="pulseaudio sdl"
+ make
+}
+
+package() {
+ cd "$_pkgname"
+ make DESTDIR="$pkgdir/" install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/pcr/lightspark/lightspark.install b/pcr/lightspark-git/lightspark-git.install
index bce670aff..27ec2eb20 100644
--- a/pcr/lightspark/lightspark.install
+++ b/pcr/lightspark-git/lightspark-git.install
@@ -1,6 +1,7 @@
post_install() {
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
update-desktop-database -q
+ update-mime-database usr/share/mime
+ gtk-update-icon-cache usr/share/icons/hicolor
}
post_upgrade() {
diff --git a/pcr/lightspark/PKGBUILD b/pcr/lightspark/PKGBUILD
deleted file mode 100644
index 50a467fc0..000000000
--- a/pcr/lightspark/PKGBUILD
+++ /dev/null
@@ -1,33 +0,0 @@
-# Maintainer (Arch): speps <speps at aur dot archlinux dot org>
-# Contributor (Arch): Thomas Dziedzic < gostrc at gmail >
-# Contributor (Arch): Jan "heftig" Steffens <jan.steffens@gmail.com>
-
-pkgname=lightspark
-pkgver=0.7.2
-pkgrel=1
-pkgdesc='An alternative Flash Player for GNU/Linux.'
-arch=('i686' 'x86_64' 'mips64el')
-url='http://lightspark.sourceforge.net'
-license=('GPL3' 'LGPL3')
-depends=('gtk2' 'ffmpeg' 'glew' 'curl' 'boost-libs' 'libxml++' 'desktop-file-utils' 'hicolor-icon-theme')
-makedepends=('cmake' 'nasm' 'xulrunner' 'llvm' 'glproto' 'boost' 'fontconfig')
-optdepends=('gnash-gtk: fallback support')
-install="$pkgname.install"
-source=(http://launchpad.net/lightspark/trunk/lightspark-$pkgver/+download/lightspark-$pkgver.tar.gz{,.asc})
-md5sums=('f078d505a354fb66dc5b68ad09a2aa81'
- 'SKIP')
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
-
- [ -d bld ] || mkdir bld && cd bld
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -DGNASH_EXE_PATH=/usr/bin/gtk-gnash
- make
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver/bld"
- make DESTDIR="$pkgdir/" install
-}