diff options
author | sl1pkn07 | 2015-09-25 16:59:30 +0200 |
---|---|---|
committer | sl1pkn07 | 2015-09-25 16:59:30 +0200 |
commit | d8653b2390fb66febbe61954cf7391555ed74306 (patch) | |
tree | db36ef42d55b111e23f205d9a9d6b89a26fb7f4b | |
parent | 0d8a23a15941f4a71e0460379879d515df109ca5 (diff) | |
download | aur-d8653b2390fb66febbe61954cf7391555ed74306.tar.gz |
Add -std=gnu++11 and update pkgver() finction
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 11 insertions, 10 deletions
@@ -1,6 +1,6 @@ pkgbase = vapoursynth-plugin-removedirtvs-git pkgdesc = Plugin for Vapoursynth: removedirtvs (GIT version) - pkgver = 20131120.ddc78e5 + pkgver = r78.ddc78e5 pkgrel = 1 url = http://forum.doom9.org/showthread.php?t=169771 arch = i686 @@ -2,11 +2,11 @@ _plug=removedirtvs pkgname=vapoursynth-plugin-${_plug}-git -pkgver=20131120.ddc78e5 +pkgver=r78.ddc78e5 pkgrel=1 pkgdesc="Plugin for Vapoursynth: ${_plug} (GIT version)" arch=('i686' 'x86_64') -url="http://forum.doom9.org/showthread.php?t=169771" +url='http://forum.doom9.org/showthread.php?t=169771' license=('GPL') depends=('vapoursynth') makedepends=('git') @@ -16,26 +16,27 @@ source=("git+https://github.com/handaimaoh/${_plug}.git" 'removedirtvs.py') sha1sums=('SKIP' 'bf3826d8944b135c0f32fbfc5e21de35718a2c33') + _sites_packages="$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")" pkgver() { cd "${_plug}" - echo "$(git log -1 --format="%cd" --date=short | tr -d '-').$(git log -1 --format="%h")" + #echo "$(git describe --long --tags)" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { - cd "${_plug}" - rm VapourSynth.h VSHelper.h + rm -fr "${_plug}/"{VapourSynth,VSHelper}.h + echo "all: - g++ -shared ${CXXFLAGS} -fPIC -fpermissive -DVS_TARGET_CPU_X86=1 -I. -o lib${_plug}.so *.cpp $(pkg-config --cflags vapoursynth)" > Makefile + g++ -o lib${_plug}.so -std=gnu++11 ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS} $(pkg-config --cflags vapoursynth) ${_plug}/*.cpp -fPIC -shared -fpermissive -DVS_TARGET_CPU_X86=1" > Makefile } build() { - cd "${_plug}" make } -package(){ - install -Dm755 "${_plug}/lib${_plug}.so" "${pkgdir}/usr/lib/vapoursynth/lib${_plug}.so" +package() { + install -Dm755 "lib${_plug}.so" "${pkgdir}/usr/lib/vapoursynth/lib${_plug}.so" install -Dm644 removedirtvs.py "${pkgdir}${_sites_packages}/removedirtvs.py" } |