summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 41ea36c91e0a0cf381cbb3d2eee5c56fb12b12fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=avs2yuv-git
pkgver=0.30.6.g631e97c
pkgrel=1
pkgdesc="A simple tool that can execute avisynth scripts. (GIT version)"
arch=('x86_64')
url='https://github.com/DJATOM/avs2yuv'
license=('GPL')
depends=('avisynthplus')
makedepends=('git'
             'cmake'
             )
provides=('avs2yuv')
conflicts=('av2yuv')
source=('git+https://github.com/DJATOM/avs2yuv.git')
sha256sums=('SKIP')

pkgver() {
  cd avs2yuv
#   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  echo "$(git describe --long --tags | tr - .)"
}

prepare() {
  mkdir -p build
}

build() {
  cd build

  cmake ../avs2yuv \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=usr

  make
}

package(){
  make -C build PREFIX="${pkgdir}/usr" install
}