summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f76b882b3a6cd0e123892fe0a52ac24d950b9957 (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
49
50
51
52
53
54
55
56
57
58
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]

# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de>
pkgname='vdr-skindesigner'
pkgver=1.2.22
pkgrel=4
_vdrapi=2.6.7
pkgdesc="Highly customizable native true color skin for the Video Disc Recorder"
url="https://gitlab.com/kamel5/skindesigner"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
license=('GPL-2.0-or-later')
depends=('git' 'librsvg' 'ttf-opensans' 'unzip' "vdr-api=${_vdrapi}" 'wget')
optdepends=('vdr-scraper2vdr: To display scraped images in various EPG views (requires epgd)'
            'vdr-tvscraper: To display scraped images in various EPG views')
conflicts=(skindesigner-{blackhole,holo,metrixhd,nopacity,shady,shady_kiss,skinelchi,tryouts})
replaces=(skindesigner-{blackhole,holo,metrixhd,nopacity,shady,shady_kiss,skinelchi,tryouts})
_plugname=${pkgname//vdr-/}
source=("$pkgname-$pkgver.tar.bz2::https://gitlab.com/kamel5/skindesigner/-/archive/$pkgver/skindesigner-$pkgver.tar.bz2"
        "$pkgname-libxml2_12.patch"
        '99-skindesigner.conf'
        "50-$_plugname.conf")
install="$pkgname.install"
backup=("etc/vdr/conf.avail/50-$_plugname.conf")
options=('!emptydirs')
sha256sums=('b37d2c5b9b9aa4bc3e12ce6cfe653bf6b218f1a44f948126849b12aa622d0ccf'
            '8231317dad94a02349aaff78f7659d81264d357049047490a2fc3dba885e5f8b'
            '25c1359cb6c61c3e7ebd6738fce6c21fa21f62ea4f274a522c30015210c3f4e5'
            'dcd2381d49d79bbfbf9cd2a7bdd5ec24c1fc2c00b4e8e58b68c9afc874f6650e')

prepare() {
  cd "${srcdir}/$_plugname-$pkgver"
#  sed -i 's/libskindesigner/..\/libskindesigner/' extensions/pluginmanager.h
  patch -p1 -i "$srcdir/$pkgname-libxml2_12.patch"
}

build() {
  cd "${srcdir}/$_plugname-$pkgver"
#  export DEFINES="-D__STL_CONFIG_H"
  make
}

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

  mkdir -p "$pkgdir/var/lib/vdr/plugins/skindesigner/"
  ln -s /usr/share/vdr/plugins/skindesigner/dtd "$pkgdir/var/lib/vdr/plugins/skindesigner/dtd"

  install -Dm644 "$srcdir/99-skindesigner.conf" "$pkgdir/etc/fonts/conf.avail/99-skindesigner.conf"

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

  cd "$pkgdir/usr/lib/vdr/plugins/skindesigner/scripts"
  mv temperatures.default temperatures
  rm README temperatures.*

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