summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1bb55530f19a7646e3b688dba88cb4f9dfaef8dc (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
# Maintainer: Markus Kalb <mk@filmkreis.tu-darmstadt.de>
# Contributor: Stefan Karner <stefan.karner@student.tuwien.ac.at>
pkgname=libdcp-git
pkgver=0.r1480.badcfc4
pkgrel=1
pkgdesc="A small C++ library which can create and read Digital Cinema Packages using JPEG2000 and WAV files"
arch=('i686' 'x86_64')
url="http://carlh.net/software/libdcp"
license=('GPL')
depends=('libcxml' 'libsndfile' 'openssl' 'libxml++>=2.6' 'xmlsec' 'imagemagick' 'openjpeg2' 'libsigc++>=2.0' 'boost-libs>=1.61.0' 'libasdcp-cth')
makedepends=('python2' 'boost>=1.45' 'pkg-config')
provides=('libdcp')
conflicts=('libdcp')
source=("libdcp-git::git+https://github.com/cth103/libdcp.git#branch=1.0")
sha512sums=('SKIP')

pkgver() {
  cd libdcp-git
  printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  CXXFLAGS="$CXXFLAGS -std=c++11"
    cd libdcp-git
  python2 waf configure --prefix=/usr
  python2 waf build
}

package() {
    cd libdcp-git
  python2 waf install --destdir=$pkgdir
}