summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8dc320d3199648cdeb98641556913ffcf2531e1e (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: Brian Bidulock <bidulock@openss7.org>

pkgname=rplay
pkgver=3.3.2
pkgrel=2
pkgdesc="Network audio system library"
arch=('x86_64' 'i686')
url="http://rplay.doit.org/"
license=('GPL')
depends=('bash')
source=("$pkgname-$pkgver.tar.gz::https://github.com/boyns/$pkgname/archive/release_3-3-2.tar.gz"
        "http://archive.debian.org/debian/pool/main/r/rplay/rplay_3.3.2-11.1.diff.gz"
        'rplayd.service'
        'rplayd@.service'
        'rplayd.socket')
md5sums=('34e22dbd85811879f16b3c30a0122fb2'
         '180052b0ddb28e63e5dc463e7a7fde5c'
         '471ea54447697c613c24dd9d00e0bd0f'
         'b41553f8993893ba263ba80ee17f42bc'
         'aa2208275aec7d92a874f32d9d52d4fe')

prepare() {
  # don't know why makepkg stopped gunzipping these
  [ -f rplay_3.3.2-11.1.diff ] || gzip -dc rplay_3.3.2-11.1.diff.gz >rplay_3.3.2-11.1.diff
  cd $pkgname-release_3-3-2
  patch -Np1 <../rplay_3.3.2-11.1.diff
}

build() {
  cd $pkgname-release_3-3-2
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc/rplay \
    --without-x \
    --enable-rplayd-user=nobody \
    --enable-rplayd-group=audio
  make
}

package() {
  cd $pkgname-release_3-3-2
  make install \
    prefix="$pkgdir/usr" \
     infodir="$pkgdir/usr/share/info" \
     mandir="$pkgdir/usr/share/man"
  install -d "$pkgdir/etc/rplay"
  install -m 644 etc/rplay.{conf,helpers,hosts,servers} "$pkgdir/etc/rplay"
  install -d "$pkgdir/usr/lib/systemd/system"
  install -m 644 ../rplayd{.service,@.service,.socket} "$pkgdir/usr/lib/systemd/system"
}


# vim:set et sw=2: