summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c936d98c5b894f7942ffbb386f4fcb85729d459f (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
59
60
61
62
# Maintainer: robertfoster
# Contributor: Tobias Luther <tobias [at] tonstrom [dot] de>

pkgname=idjc-git
pkgver=0.9.5.r28.bb8bfa9
pkgrel=1
pkgdesc="Powerful client for individuals interested in streaming live radio shows"
url='http://idjc.sourceforge.net/'
license=('GPL2')
arch=('i686' 'x86_64')
depends=(
  'desktop-file-utils'
  'ffmpeg'
  'flac'
  'glib2'
  'jack'
  'lame'
  'libmad'
  'libsamplerate'
  'libshout-idjc'
  'libsndfile'
  'python'
  'python-dbus'
  'python-gobject'
  'python-mutagen'
  'speex'
  'twolame'
  'vorbis-tools'
)
makedepends=('git')
optdepends=('python-mysqlclient: Ampache and Prokyon 3 support'
  'python-irc: IRC notification support')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('idjc::git+https://git.code.sf.net/p/idjc/code')

build() {
  cd "${srcdir}/${pkgname%-git}"

  ./bootstrap
  ./configure \
    --prefix=/usr \
    --libexecdir=/usr/lib \
    --disable-static
  make
}

package() {
  cd "${srcdir}/${pkgname%-git}"

  make DESTDIR=${pkgdir} install

  sed -i "s/Icon=\/usr\/share\/pixmaps\/${pkgname%%-git}.png/Icon=${pkgname%%-git}/g" \
    ${pkgdir}/usr/share/applications/${pkgname%%-git}.desktop
}

pkgver() {
  cd "${srcdir}/${pkgname%-git}"
  printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

sha256sums=('SKIP')