diff options
author | Chocobo1 | 2017-08-22 16:12:22 +0800 |
---|---|---|
committer | Chocobo1 | 2017-08-22 18:18:10 +0800 |
commit | d5cc974e1791cbbd7cfbc473f933e2e4c0c70f09 (patch) | |
tree | 3ead207f4a7f6dea54f1f839ecea3e94468d39a0 | |
download | aur-d5cc974e1791cbbd7cfbc473f933e2e4c0c70f09.tar.gz |
newpkg: icecast-git 2.5.0.beta.1.r179.gfa86f2d-1
-rw-r--r-- | .SRCINFO | 33 | ||||
-rw-r--r-- | PKGBUILD | 58 |
2 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c734c5b991ce --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,33 @@ +pkgbase = icecast-git + pkgdesc = A streaming media (audio/video) server + pkgver = 2.5.0.beta.1.r179.gfa86f2d + pkgrel = 1 + url = http://www.icecast.org/ + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = git + depends = glibc + depends = openssl + depends = curl>=7.10 + depends = libxml2 + depends = libxslt + depends = libtheora + depends = libvorbis>=1.0 + depends = speex + depends = libkate + provides = icecast + conflicts = icecast + backup = etc/icecast.xml + backup = etc/logrotate.d/icecast + source = git+https://git.xiph.org/icecast-server.git + source = icecast.logrotate::https://git.archlinux.org/svntogit/community.git/plain/trunk/icecast.logrotate?h=packages/icecast + source = icecast.service::https://git.archlinux.org/svntogit/community.git/plain/trunk/icecast.service?h=packages/icecast + source = start-by-nobody.patch::https://git.archlinux.org/svntogit/community.git/plain/trunk/start-by-nobody.patch?h=packages/icecast + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + +pkgname = icecast-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4be5a950c2ce --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} |