summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c028cf81a605aba4db4cd839b1cfef16bcfe2e7a (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
# Maintainer: Michael Lass <bevan@bi-co.net>

# This PKGBUILD is maintained on github:
# https://github.com/michaellass/AUR

pkgname=mumudvb
_gitname=MuMuDVB
pkgver=2.1.0
pkgrel=1
pkgdesc="Redistribute a stream from DVB on a network in multicast or in HTTP unicast"
arch=(i686 x86_64 armv7h)
url="http://www.mumudvb.net/"
license=('GPL2')
depends=('glibc')
source=("https://github.com/braice/${_gitname}/archive/${pkgver}.zip"
        "mumudvb.conf"
        "0001-Fix-compiling-with-kernels-4.14.patch")
install="mumudvb.install"
sha256sums=('43706f0d899cebc934dc7a2076497d221b44464b4d986dc263dd2a6c91ae9088'
            'abe3c74a528f59b990e18f91858cb9bb9dd61c715c8904eb561aa7ee4cb79281'
            'f9cc41c30a204ddf71522de6f5f0fa0432c7f02a62dbd521b95d3258003dc5dd')

prepare() {
  cd "${srcdir}/${_gitname}-${pkgver}"
  patch -p1 < "${srcdir}"/0001-Fix-compiling-with-kernels-4.14.patch
}

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

  # Needed for development snapshots
  autoreconf -i -f

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${_gitname}-${pkgver}"

  make DESTDIR="${pkgdir}" install

  # systemd tmpfile configuration
  install -D -m 0644 ${srcdir}/mumudvb.conf ${pkgdir}/usr/lib/tmpfiles.d/mumudvb.conf

  # docs
  install -d -m 0755 ${pkgdir}/usr/share/doc/mumudvb
  install -d -m 0755 ${pkgdir}/usr/share/man/man8
  cp -r doc/* ${pkgdir}/usr/share/doc/mumudvb/
  mv ${pkgdir}/usr/share/doc/mumudvb/mumudvb.8 ${pkgdir}/usr/share/man/man8
  rm ${pkgdir}/usr/share/doc/mumudvb/Makefile*
}

# vim:set ts=2 sw=2 et: