summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsl1pkn072015-06-08 20:36:19 +0200
committersl1pkn072015-06-08 20:36:19 +0200
commit32b6a4160e40c298207fa6cd4f0e20ef4b9efb90 (patch)
treea21a2f611002ff2515321773b5342a38dce5ef49
downloadaur-32b6a4160e40c298207fa6cd4f0e20ef4b9efb90.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD42
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..47f564f6969
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = vapoursynth-plugin-scenechange
+ pkgdesc = Plugin for Vapoursynth: scenechange (Include temporalsoften2 script)
+ pkgver = 0.2.0_2
+ pkgrel = 1
+ url = http://forum.doom9.org/showthread.php?t=166769
+ arch = i686
+ arch = x86_64
+ license = LGPL2.1
+ makedepends = git
+ depends = vapoursynth
+ provides = vapoursynth-plugin-scenechange
+ conflicts = vapoursynth-plugin-scenechange-git
+ noextract = scenechange-0.2.0-2.7z
+ source = https://dl.dropbox.com/u/6596386/vapoursynth-plugins/scenechange-0.2.0-2.7z
+ sha1sums = 98ffaf3ea7ed8294a6a4b415c2ff813f5b87b8f1
+
+pkgname = vapoursynth-plugin-scenechange
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..05c6d4d4c97
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a2a371320a2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
+
+_plug=scenechange
+pkgname=vapoursynth-plugin-${_plug}
+pkgver=0.2.0_2
+pkgrel=1
+pkgdesc="Plugin for Vapoursynth: ${_plug} (Include temporalsoften2 script)"
+arch=('i686' 'x86_64')
+url="http://forum.doom9.org/showthread.php?t=166769"
+license=('LGPL2.1')
+depends=('vapoursynth')
+provides=("vapoursynth-plugin-${_plug}")
+conflicts=("vapoursynth-plugin-${_plug}-git")
+makedepends=('git')
+source=("https://dl.dropbox.com/u/6596386/vapoursynth-plugins/${_plug}-${pkgver/_/-}.7z")
+sha1sums=('98ffaf3ea7ed8294a6a4b415c2ff813f5b87b8f1')
+noextract=("${_plug}-${pkgver/_/-}.7z")
+_sites_packages="$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")"
+
+build() {
+ mkdir -p "${_plug}-build"
+ cd "${_plug}-build/"
+ bsdtar -xf "../${_plug}-${pkgver/_/-}.7z"
+ cd src
+
+ CFLAGS="-fPIC -Wall -Wshadow -std=gnu99 -I."
+ XLDFLAGS="-Wl,-s"
+ XCFLAGS="-Os -g0 -ffast-math -fexcess-precision=fast -fomit-frame-pointer"
+ LDFLAGS="-shared -fPIC -L."
+ gcc -o libscenechange.so $CFLAGS $XCFLAGS $LDFLAGS $XLDFLAGS scenechange.c
+ gcc -o libtemporalsoften2.so $CFLAGS $XCFLAGS $LDFLAGS $XLDFLAGS temporalsoften.c
+}
+
+package(){
+ cd "${_plug}-build"
+ install -Dm755 src/libscenechange.so "${pkgdir}/usr/lib/vapoursynth/lib${_plug}.so"
+ install -Dm755 src/libtemporalsoften2.so "${pkgdir}/usr/lib/vapoursynth/libtemporalsoften2.so"
+ install -Dm644 readme.txt "${pkgdir}/usr/share/doc/vapoursynth/plugins/${_plug}/README"
+ install -Dm644 readme_temporalsoften.txt "${pkgdir}/usr/share/doc/vapoursynth/plugins/${_plug}/README_temporalsoften2"
+ install -Dm644 temporalsoften2.py "${pkgdir}${_sites_packages}/temporalsoften2.py"
+}
+