summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/lightspark-git/PKGBUILD46
-rw-r--r--pcr/lightspark/PKGBUILD61
-rw-r--r--pcr/lightspark/lightspark.install (renamed from pcr/lightspark-git/lightspark-git.install)0
3 files changed, 61 insertions, 46 deletions
diff --git a/pcr/lightspark-git/PKGBUILD b/pcr/lightspark-git/PKGBUILD
deleted file mode 100644
index c351a9834..000000000
--- a/pcr/lightspark-git/PKGBUILD
+++ /dev/null
@@ -1,46 +0,0 @@
-# Maintainer (Arch): Daniel Landau <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.8.0.r123.gda0e6514
-pkgrel=1
-pkgdesc="An open source flash player implementation"
-arch=('i686' 'x86_64')
-url="http://lightspark.sourceforge.net"
-license=('LGPL3')
-depends=('gtk2' 'boost-libs<1.66' 'glew' 'ffmpeg' 'curl' 'desktop-file-utils' 'rtmpdump' 'sdl2_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/PKGBUILD b/pcr/lightspark/PKGBUILD
new file mode 100644
index 000000000..0f4f52cd1
--- /dev/null
+++ b/pcr/lightspark/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer (Arch): Daniel Landau <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>
+# Contributor: bill-auger <bill-auger@programmer.net>
+
+
+pkgname=lightspark
+pkgver=0.8.2
+pkgrel=1
+pkgdesc="An open source flash player implementation"
+arch=('armv7h' 'i686' 'x86_64')
+url=http://lightspark.github.io/
+license=('LGPL3')
+
+depends=('boost-libs' 'cairo' 'curl' 'desktop-file-utils' 'ffmpeg' 'glew' \
+ 'glibmm' 'llvm' 'pango' 'rtmpdump' 'sdl2_mixer' )
+optdepends=('gnash-gtk: Gnash fallback support')
+makedepends=('cmake' 'nasm' 'boost')
+conflicts=('lightspark-git')
+
+install=lightspark.install
+source=(https://github.com/lightspark/lightspark/archive/${pkgver}.tar.gz)
+sha256sums=('05595a3085bf76ea5c9723f128dcadead5ccf38e177c3a456901ccee3265548a')
+
+
+_builddir=${pkgname}-${pkgver}/build
+
+
+prepare()
+{
+ cd "${srcdir}"/
+
+ [ -d ${_builddir} ] && rm -rf ${_builddir}/* || mkdir ${_builddir}
+}
+
+build()
+{
+ cd "${srcdir}"/${_builddir}/
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCOMPILE_PLUGIN=1 \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DGNASH_EXE_PATH=/usr/bin/gtk-gnash \
+ -DAUDIO_BACKEND="pulseaudio sdl" ..
+ make CFLAGS=-Wno-dev
+}
+
+package()
+{
+ cd "${srcdir}"/${_builddir}/
+
+ make DESTDIR="${pkgdir}/" install
+
+ local _boost_ver=$(pacman -S --print-format='%v' boost-libs)
+ depends+=("boost-libs>=${_boost_ver}" "boost-libs<$((${_boost_ver%%.*} + 1))")
+}
+
diff --git a/pcr/lightspark-git/lightspark-git.install b/pcr/lightspark/lightspark.install
index 27ec2eb20..27ec2eb20 100644
--- a/pcr/lightspark-git/lightspark-git.install
+++ b/pcr/lightspark/lightspark.install