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

pkgname=ices0
pkgver=0.4.11
pkgrel=3
pkgdesc="Source client for broadcasting in MP3 format to an Icecast2 server"
arch=('i686' 'x86_64' 'armv7h')
license=('GPL-2.0')
url="https://icecast.org/ices/"
depends=('libxml2' 'lame' 'libvorbis' 'libshout' 'python2' 'perl' 'pkgconf' 'autoconf')
optdepends=('flac: flac audio support'
            'faad2: aac audio support'
            'libmp4v2: aac audio support'
            'libogg: ogg audio support')
source=(https://github.com/Moonbase59/ices0/archive/v${pkgver}.tar.gz)
sha512sums=('df8d7d7a52c690ee26d5b3716a8ac92f1bf79f84efb975b9036c8cd42d0fcd3a5a07b04a78de39>
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
}