summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a2e60befc4012dfcaabf5c30468502e97caf5a1 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libshout-git
pkgver=2.4.1.r22.g2dd6cfb
pkgrel=1
pkgdesc="Library for accessing a shoutcast/icecast server"
arch=('i686' 'x86_64')
url="https://libshout.freedesktop.org/wiki/"
license=('GPL2')
depends=('glibc' 'openssl' 'libtheora' 'libvorbis' 'speex' )
makedepends=('git')
provides=('libshout')
conflicts=('libshout')
options=('staticlibs')
source=("git+https://git.xiph.org/icecast-libshout.git"
        "0001-Fix-build-with-newer-openssl.patch")
sha256sums=('SKIP'
            '742f1954c21ed5f8344dc1514507c981f445be0a7d4bdd2adaa73b0464f37a75')


prepare() {
  cd "icecast-libshout"

  sed -i 's|url = \.\.|url = https://git.xiph.org|' ".gitmodules"
  git submodule sync
  git submodule update --init --recursive

  patch -Np1 -i "$srcdir/0001-Fix-build-with-newer-openssl.patch"
}

pkgver() {
  cd "icecast-libshout"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "icecast-libshout"

  ./autogen.sh
  ./configure --prefix="/usr"
  make
}

package() {
  cd "icecast-libshout"

  make DESTDIR="$pkgdir" install

  rm "$pkgdir/usr/share/doc/libshout/COPYING"
}