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

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

pkgname=mumudvb
_gitname=MuMuDVB
pkgver=1.7.2
pkgrel=1
pkgdesc="Redistribute a stream from DVB on a network in multicast or in HTTP unicast"
arch=(i686 x86_64)
url="http://www.mumudvb.net/"
license=('GPL')
depends=('glibc')
options=(docs emptydirs)
source=("https://github.com/braice/${_gitname}/archive/${pkgver}.zip"
        "mumudvb.install"
        "mumudvb.conf")
install="mumudvb.install"
sha256sums=('48294d41f135ecb56b07c7c8c6e9effc46658f98441229b2d1a7b1ad38e77b98'
            '8d6ae9ed0f8c6d00254549bfae6bc20ca0984dce8c85eb1ef00d555e49b41264'
            'abe3c74a528f59b990e18f91858cb9bb9dd61c715c8904eb561aa7ee4cb79281')

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 0775 ${pkgdir}/usr/share/doc/mumudvb/configuration_examples
  install -d -m 0775 ${pkgdir}/usr/share/doc/mumudvb/html
  install -D -m 0644 doc/mumudvb.8 ${pkgdir}/usr/share/man/man8/mumudvb.8
  install -m 0644 doc/configuration_examples/* ${pkgdir}/usr/share/doc/mumudvb/configuration_examples
  install -m 0644 doc/html/* ${pkgdir}/usr/share/doc/mumudvb/html
  install -m 0644 doc/README* ${pkgdir}/usr/share/doc/mumudvb
  install -m 0644 doc/QUICKSTART.txt ${pkgdir}/usr/share/doc/mumudvb
  install -m 0644 doc/WEBSERVICES.txt ${pkgdir}/usr/share/doc/mumudvb
}

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