summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsl1pkn072015-07-27 06:47:01 +0200
committersl1pkn072015-07-27 06:47:01 +0200
commit5a701b48ed2599ec38ff3c524dab635c92f0bd78 (patch)
tree009c440b889e8f13090381d59b5634fa24cff758
parent32b6a4160e40c298207fa6cd4f0e20ef4b9efb90 (diff)
downloadaur-5a701b48ed2599ec38ff3c524dab635c92f0bd78.tar.gz
rework
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD31
2 files changed, 15 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 47f564f6969..220e949200a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = vapoursynth-plugin-scenechange
pkgdesc = Plugin for Vapoursynth: scenechange (Include temporalsoften2 script)
pkgver = 0.2.0_2
- pkgrel = 1
+ pkgrel = 2
url = http://forum.doom9.org/showthread.php?t=166769
arch = i686
arch = x86_64
@@ -10,7 +10,6 @@ pkgbase = vapoursynth-plugin-scenechange
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
diff --git a/PKGBUILD b/PKGBUILD
index a2a371320a2..1c23afa002c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,10 +3,10 @@
_plug=scenechange
pkgname=vapoursynth-plugin-${_plug}
pkgver=0.2.0_2
-pkgrel=1
+pkgrel=2
pkgdesc="Plugin for Vapoursynth: ${_plug} (Include temporalsoften2 script)"
arch=('i686' 'x86_64')
-url="http://forum.doom9.org/showthread.php?t=166769"
+url='http://forum.doom9.org/showthread.php?t=166769'
license=('LGPL2.1')
depends=('vapoursynth')
provides=("vapoursynth-plugin-${_plug}")
@@ -14,29 +14,26 @@ 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())")"
+prepare() {
+ rm -fr src/Vapoursynth.h
+}
+
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
+ CFLAGS+=" -fPIC -Wall -Wshadow -std=gnu99 -I. $(pkg-config --cflags vapoursynth) -msse2 -mfpmath=sse -ffast-math -fomit-frame-pointer"
+ LDFLAGS+=" -Wl,-s -shared -fPIC -L."
+ gcc -o lib${_plug}.so ${CFLAGS} ${LDFLAGS} scenechange.c
+ gcc -o libtemporalsoften2.so ${CFLAGS} ${LDFLAGS} temporalsoften.c
}
package(){
- cd "${_plug}-build"
- install -Dm755 src/libscenechange.so "${pkgdir}/usr/lib/vapoursynth/lib${_plug}.so"
+ install -Dm755 "src/lib${_plug}.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 readme.txt "${pkgdir}/usr/share/doc/vapoursynth/plugins/${_plug}/README.txt"
+ install -Dm644 readme_temporalsoften.txt "${pkgdir}/usr/share/doc/vapoursynth/plugins/${_plug}/README_temporalsoften2.txt"
install -Dm644 temporalsoften2.py "${pkgdir}${_sites_packages}/temporalsoften2.py"
}
-