blob: 4be5a950c2ce45684d8cdca48abf32b41db0a9d9 (
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
54
55
56
57
58
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=icecast-git
pkgver=2.5.0.beta.1.r179.gfa86f2d
pkgrel=1
pkgdesc="A streaming media (audio/video) server"
arch=('i686' 'x86_64')
url="http://www.icecast.org/"
license=('GPL2')
depends=('glibc' 'openssl' 'curl>=7.10' 'libxml2' 'libxslt' 'libtheora' 'libvorbis>=1.0' 'speex' 'libkate')
makedepends=('git')
provides=('icecast')
conflicts=('icecast')
backup=('etc/icecast.xml'
'etc/logrotate.d/icecast')
source=("git+https://git.xiph.org/icecast-server.git"
"icecast.logrotate::https://git.archlinux.org/svntogit/community.git/plain/trunk/icecast.logrotate?h=packages/icecast"
"icecast.service::https://git.archlinux.org/svntogit/community.git/plain/trunk/icecast.service?h=packages/icecast"
"start-by-nobody.patch::https://git.archlinux.org/svntogit/community.git/plain/trunk/start-by-nobody.patch?h=packages/icecast")
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
prepare() {
cd "icecast-server"
sed -i 's|url = \.\.|url = https://git.xiph.org|' ".gitmodules"
git submodule sync
git submodule update --init --recursive
patch -Np1 -i "$srcdir/start-by-nobody.patch"
}
pkgver() {
cd "icecast-server"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "icecast-server"
./autogen.sh
./configure --prefix="/usr" --sysconfdir="/etc" --localstatedir="/var"
make
}
package() {
cd "icecast-server"
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/icecast.logrotate" "$pkgdir/etc/logrotate.d/icecast"
install -Dm644 "$srcdir/icecast.service" "$pkgdir/usr/lib/systemd/system/icecast.service"
install -d -g99 -o99 "$pkgdir/var/log/icecast"
}
|