summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsl1pkn072015-12-25 23:01:16 +0100
committersl1pkn072015-12-25 23:01:16 +0100
commitd4ee5e9ff0fcbc95886973abbc6fcd47e4353d74 (patch)
treea05e11687e61c1e02d5a2636650ddc80ff80d0bc
parent5a701b48ed2599ec38ff3c524dab635c92f0bd78 (diff)
downloadaur-d4ee5e9ff0fcbc95886973abbc6fcd47e4353d74.tar.gz
update PKGBUILD
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD22
2 files changed, 15 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 220e949200a..68ca73e6b82 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,9 @@
+# Generated by mksrcinfo v8
+# Fri Dec 25 22:00:49 UTC 2015
pkgbase = vapoursynth-plugin-scenechange
pkgdesc = Plugin for Vapoursynth: scenechange (Include temporalsoften2 script)
pkgver = 0.2.0_2
- pkgrel = 2
+ pkgrel = 3
url = http://forum.doom9.org/showthread.php?t=166769
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 1c23afa002c..b0605212a0e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_plug=scenechange
pkgname=vapoursynth-plugin-${_plug}
pkgver=0.2.0_2
-pkgrel=2
+pkgrel=3
pkgdesc="Plugin for Vapoursynth: ${_plug} (Include temporalsoften2 script)"
arch=('i686' 'x86_64')
url='http://forum.doom9.org/showthread.php?t=166769'
@@ -19,21 +19,23 @@ _sites_packages="$(python -c "from distutils.sysconfig import get_python_lib; pr
prepare() {
rm -fr src/Vapoursynth.h
+
+ echo "all:
+ gcc -c -std=gnu99 -msse2 -mfpmath=sse -ffast-math -fomit-frame-pointer -fPIC ${CFLAGS} ${CPPFLAGS} -I. $(pkg-config --cflags vapoursynth) -o scenechange.o src/scenechange.c
+ gcc -c -std=gnu99 -msse2 -mfpmath=sse -ffast-math -fomit-frame-pointer -fPIC ${CFLAGS} ${CPPFLAGS} -I. $(pkg-config --cflags vapoursynth) -o temporalsoften.o src/temporalsoften.c
+ gcc -shared -fPIC ${LDFLAGS} -o lib${_plug}.so scenechange.o
+ gcc -shared -fPIC ${LDFLAGS} -o libtemporalsoften2.so temporalsoften.o" > Makefile
}
build() {
- cd src
-
- 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
+ make
}
package(){
- 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 -Dm755 "lib${_plug}.so" "${pkgdir}/usr/lib/vapoursynth/lib${_plug}.so"
+ install -Dm755 libtemporalsoften2.so "${pkgdir}/usr/lib/vapoursynth/libtemporalsoften2.so"
+ install -Dm644 temporalsoften2.py "${pkgdir}${_sites_packages}/temporalsoften2.py"
+
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"
}