summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsL1pKn072022-02-13 16:18:51 +0100
committersL1pKn072022-02-13 16:18:51 +0100
commite210eccc802d5f1460d168318ccb7007329cdbfb (patch)
tree481c3cefa590c16934f72760e0a0630bda916718
downloadaur-e210eccc802d5f1460d168318ccb7007329cdbfb.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD50
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..0e2f1f59dfaa
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = vapoursynth-plugin-ccd-git
+ pkgdesc = Plugin for Vapoursynth: ccd (GIT version)
+ pkgver = v0.3.1.5.g4256058
+ pkgrel = 1
+ url = https://github.com/End-of-Eternity/vs-ccd
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = meson
+ depends = vapoursynth
+ provides = vapoursynth-plugin-ccd
+ conflicts = vapoursynth-plugin-ccd
+ source = ccd::git+https://github.com/End-of-Eternity/vs-ccd.git
+ sha256sums = SKIP
+
+pkgname = vapoursynth-plugin-ccd-git
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..05c6d4d4c97b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..eb583a2fe3b3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
+
+_plug=ccd
+pkgname="vapoursynth-plugin-${_plug}-git"
+pkgver=v0.3.1.5.g4256058
+pkgrel=1
+pkgdesc="Plugin for Vapoursynth: ${_plug} (GIT version)"
+arch=('x86_64')
+url='https://github.com/End-of-Eternity/vs-ccd'
+license=('MIT')
+depends=('vapoursynth')
+makedepends=('git'
+ 'meson'
+ )
+provides=("vapoursynth-plugin-${_plug}")
+conflicts=("vapoursynth-plugin-${_plug}")
+source=("${_plug}::git+https://github.com/End-of-Eternity/vs-ccd.git")
+sha256sums=('SKIP')
+
+
+_site_packages="$(python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')"
+
+pkgver() {
+ cd "${_plug}"
+ echo "$(git describe --long --tags | tr - .)"
+}
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+ arch-meson "../${_plug}" \
+ --libdir /usr/lib/vapoursynth
+
+ ninja
+}
+
+package() {
+ DESTDIR="${pkgdir}" ninja -C build install
+
+ cd "${_plug}"
+ install -Dm644 ccd.py "${pkgdir}${_site_packages}/${_plug}.py"
+ python -m compileall -q -f -d "${_site_packages}" "${pkgdir}${_site_packages}/${_plug}.py"
+ python -OO -m compileall -q -f -d "${_site_packages}" "${pkgdir}${_site_packages}/${_plug}.py"
+
+ install -Dm644 README.md "${pkgdir}/usr/share/doc/vapoursynth/plugins/${_plug}/README.md"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}