diff options
author | sL1pKn07 | 2021-01-07 17:48:20 +0100 |
---|---|---|
committer | sL1pKn07 | 2021-01-07 17:48:20 +0100 |
commit | b64bb31e953a7441a5035ebcb1c92369ba295f8b (patch) | |
tree | 7796cf3fadb0c2e3f435782562df134f13a28bac /PKGBUILD | |
download | aur-b64bb31e953a7441a5035ebcb1c92369ba295f8b.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9e49fee4ddd2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com> + +_plug=turnstile +pkgname=avisynth-plugin-${_plug}-git +pkgver=v1.0.0.0.g9174d07 +pkgrel=1 +pkgdesc="Plugin for Avisynth: ${_plug} (GIT version)" +arch=('x86_64') +url='https://github.com/ItEndsWithTens/TurnsTile' +license=('GPL') +depends=('avisynthplus') +makedepends=('git' + 'cmake' + ) +provides=("avisynth-plugin-${_plug}") +conflicts=("avisynth-plugin-${_plug}") +source=("${_plug}::git+https://github.com/ItEndsWithTens/TurnsTile.git" + 'git+https://github.com/lvandeve/lodepng.git' + 'esee' + ) +sha256sums=('SKIP' + 'SKIP' + '6c4265143c0ff198634c31f04b15a0eb232cf332cadedac8b42aa12ff91886f2' + ) + +pkgver() { + cd "${_plug}" + echo "$(git describe --long --tags | tr - .)" +} + +prepare() { + mkdir -p build + + cd "${_plug}" + patch -p1 -i "${srcdir}/esee" + + git config submodule.include/lodepng.url "${srcdir}/lodepng" + git submodule update --init include/lodepng +} + +build() { + cd build + + cmake "../${_plug}" \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DAVISYNTHPLUS_HDR=/usr/include/avisynth/avisynth.h + + make +} + +package(){ + make -C build DESTDIR="${pkgdir}" install +} |