summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4420e499a75c92a4b729401566f6c35d9e934da8 (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=zimg-git
pkgver=2.0.1.22.g1aa2811
pkgrel=1
pkgdesc="Scaling, colorspace conversion, and dithering library. include VapourSynth plugin (deprecated soon(?)). (GIT version)"
arch=('i686' 'x86_64')
url='http://forum.doom9.org/showthread.php?t=171334'
license=('custom:WTFPL')
depends=('vapoursynth')
makedepends=('git')
provides=('zimg' 'vapoursynth-plugin-zimg')
conflicts=('zimg' 'vapoursynth-plugin-zimg')
source=('git+https://github.com/sekrit-twc/zimg.git')
sha1sums=('SKIP')

pkgver() {
  cd zimg
  echo "$(git describe --long --tags | tr - . | sed 's|release.||g')"
}

prepare() {
  cd zimg
  ./autogen.sh
}

build() {
  cd zimg
  ./configure --prefix=/usr \
              --enable-x86simd
  make
}

package(){
  make -C zimg DESTDIR="${pkgdir}" install
  install -d "${pkgdir}/usr/lib/vapoursynth"
  ln -s ../zimg/vszimg.so "${pkgdir}/usr/lib/vapoursynth/libvszimg.so"

  install -Dm644 zimg/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
  install -Dm644 zimg/doc/vszimg/vszimg.txt "${pkgdir}/usr/share/doc/vapoursynth/plugins/zimg/vszimg.txt"
}