updated on Thu Jan 12 00:00:55 UTC 2012
[aur-mirror.git] / icecast-kh / PKGBUILD
blob5f0ed9565160e2af862bda3a494ea4616f1914e2
1 # Maintainer: Sebastien Luttringer <seblu+arch@seblu.net>
3 pkgname=icecast-kh
4 pkgver=2.3.2_kh31
5 pkgrel=1
6 pkgdesc='KH branche extends the offical release of Icecast with new features and bug fixes.'
7 arch=('i686' 'x86_64')
8 url='http://www.xiphicecast.webspace.virginmedia.com'
9 license=('GPL2')
10 conflict=('icecast' 'icecast-svn')
11 provides=("icecast=${pkgver/_*}")
12 depends=('openssl' 'libxml2' 'libxslt' 'libvorbis' 'libogg' 'libtheora' 'speex' 'curl')
13 optdepends=('ices-kh: client for icecast server')
14 backup=('etc/icecast.xml' 'etc/logrotate.d/icecast')
15 source=("http://www.xiphicecast.webspace.virginmedia.com/${pkgname/-*}-${pkgver//_/-}.tar.gz" 'logrotate' 'rc.d') 
16 md5sums=('9cd02f382ca804a986271306a7557fd3'
17          '59c6552bcb1dd9fb542af8670dfabd3c'
18          '8bec8be276a9204bf26fe51a5855e626')
20 build() {
21   cd ${pkgname/-*}-${pkgver//_/-}
22   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
23   make
26 package() {
27   cd ${pkgname/-*}-${pkgver//_/-}
28   make DESTDIR="$pkgdir" install
30   # rc.d
31   install -D -m 755 "${srcdir}/rc.d" "${pkgdir}/etc/rc.d/icecast"
33   # logrorate
34   install -D -m 644 "${srcdir}/logrotate" "${pkgdir}/etc/logrotate.d/icecast"
36   # log directory
37   install -d -o root -g log -m 750 "${pkgdir}/var/log/icecast"
40 # vim:set ts=2 sw=2 ft=sh et: