summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5452da8b9f0f4b35dd40019214bd9b6da2cf25e1 (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
# Maintainer: AlphaJack <alphajack at tuta dot io>
# Contributor: ianux
# Contributor: priyank
# Contributor: etix

pkgname=ices0
pkgver=0.4.11
pkgrel=3
pkgdesc="A source client for broadcasting in MP3, FLAC, AAC and OGG Vorbis formats to an icecast2 server"
arch=('i686' 'x86_64' 'armv7h')
license=('GPL-2.0')
url="https://github.com/Moonbase59/ices0"
depends=('lame' 'libxml2' 'libshout' 'perl' 'python2')
optdepends=('flac: flac audio support'
            'faad2: aac audio support'
            'libmp4v2: aac audio support'
            'libogg: vorbis audio support'
            'libvorbis: vorbis audio support')
makedepends=('autoconf' 'pkgconf')
source=(https://github.com/Moonbase59/ices0/archive/v${pkgver}.tar.gz)
sha512sums=('df8d7d7a52c690ee26d5b3716a8ac92f1bf79f84efb975b9036c8cd42d0fcd3a5a07b04a78de39afe80e50e341da476b42b03a7e241e83496ec7f8ac1a42710a')
options=('!docs')
install=$pkgname.install

build() {
  cd ${srcdir}/$pkgname-$pkgver
  aclocal
  autoreconf -fi
  automake --add-missing
  ./configure --prefix=/usr --sysconfdir=/usr/share/$pkgname -mandir=/usr/share \
   --with-python=/usr/bin/python2
  make
}

package() {
  cd ${srcdir}/$pkgname-$pkgver
  make DESTDIR=${pkgdir} install
  # Rename files to avoid conflict with ices2
  mv ${pkgdir}/usr/bin/ices ${pkgdir}/usr/bin/ices0
  mv ${pkgdir}/usr/share/man1/ices.1 ${pkgdir}/usr/share/man1/ices0.1
  install -Dm644 COPYING ${pkgdir}/usr/share/licenses/$pkgname/COPYING
}