summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e9cdbcd6d4c05d5ed1e844f09bb207670738b4d (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
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]

# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de>
# Contributor: ast261
pkgname=vdr-burn
pkgver=0.3.0
epoch=1
_vdrapi=2.2.0
pkgrel=1
pkgdesc="VDR plugin to create DVDs"
url="https://projects.vdr-developer.org/projects/plg-burn"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
license=('GPL2')
depends=('gd' 'boost' 'libcdio' 'imlib2' 'dvd+rw-tools' 'dvdauthor' 'mjpegtools' 'lxdvdrip' 'projectx' "vdr-api=${_vdrapi}")
_plugname=${pkgname//vdr-/}
source=("https://projects.vdr-developer.org/attachments/download/2028/${pkgname}-${pkgver}.tgz")
backup=("etc/vdr/conf.avail/50-$_plugname.conf")
md5sums=('bfb1847462eea781f98634eb04faab3a')

prepare() {
  cd "${srcdir}/${_plugname}-${pkgver}"
  sed -i 's/ProjectX.jar/projectx\/ProjectX.jar/g' config/vdrburn-dvd.conf
}

build() {
  cd "${srcdir}/${_plugname}-${pkgver}"
  make
}

package() {
  cd "${srcdir}/${_plugname}-${pkgver}"
  make DESTDIR="${pkgdir}" install

  install -Dm644 "$srcdir/${_plugname}-${pkgver}/50-$_plugname.conf" "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf"

  chown -R 666:666 "$pkgdir/var/lib/vdr"
}