blob: 987855bcf66731cef7eeb98ef63767c14c20b57f (
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
42
43
44
45
46
47
48
|
# Maintainer: Markus Kalb <mk@filmkreis.tu-darmstadt.de>
# Maintainer: Benjamin Radel <aur@radel.tk>
# Contributor: Stefan Karner <stefan.karner@student.tuwien.ac.at>
pkgname=libdcp
pkgver=1.8.113
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="https://carlh.net/libdcp"
license=('GPL-2.0-or-later')
depends=('libxml++2.6' 'xmlsec' 'imagemagick' 'openjpeg2>=2.5' 'libcxml>=0.17.11' 'libsigc++>=2.0' 'boost-libs>=1.86.0' 'xerces-c' 'libasdcp-cth>=0.1.6.r23.g467a543')
makedepends=('git' 'python' 'boost>=1.86.0' 'gcc' 'pkg-config')
_cherrypicks=()
source=("${pkgname}-${pkgver}::git+git://git.carlh.net/git/${pkgname}.git#tag=v${pkgver}")
sha256sums=('f58385a3e6456f799dcb617eff99b072ea5948c10cacda0f206e20dd201299fd')
prepare() {
cd $srcdir/${pkgname}-${pkgver}
### Cherry pick upstream commits (fixes and such) ###
for c in "${_cherrypicks[@]}"; do
echo "Applying commit ${c}"
git cherry-pick ${c};
done
### Apply patches ###
for p in "${source[@]}"; do
if [[ "$p" =~ \.patch$ ]]; then
echo "Applying patch ${p##*/}"
patch -p1 -N -i "${srcdir}/${p##*/}"
fi
done
}
build() {
### Configure libdcp ###
cd "${srcdir}/${pkgname}-${pkgver}"
python waf configure --prefix=/usr --disable-tests --disable-examples --disable-benchmarks --disable-dumpimage
python waf build
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python waf install --destdir="$pkgdir"
cd "${pkgdir}"
if [ -d usr/lib64 ]
then
mv usr/lib64 usr/lib
fi
}
|