summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6722a2e1a21f3d609959acaa50abd9fec05bd3a (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
# Maintainer: Alois Nespor <info at aloisnespor dot info>
 
pkgname=gst-mpg123
pkgver=20121118
pkgrel=1
pkgdesc="MP3 decoding for gstreamer-0.10, using the mpg123 library."
arch=('i686' 'x86_64')
url="https://github.com/dv1/gstmpg123.git"
license=('LGPL')
depends=('gstreamer0.10-base' 'mpg123')
makedepends=('pkgconfig' 'git')

_gitroot="git://github.com/dv1/gstmpg123.git"
_gitname="gstmpg123"

build() {

  msg "Connecting to the git repository..."
  if [ -d "$srcdir/$_gitname" ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
  else
    git clone $_gitroot
  fi

  msg "GIT checkout done or server timeout"
  cd "$srcdir"
  rm -rf $_gitname-build
  git clone $_gitname $_gitname-build
  cd $_gitname-build

  msg2 "Configuring..."  
  sed -i 's:python:python2:' waf  
  sed -i 's:python:python2:' wscript
  ./waf configure build_0_10 --prefix=/usr --disable-gstreamer-1-0 

}
 
package() {
  cd "$srcdir/$_gitname-build"
 DESTDIR="$pkgdir" ./waf install_0_10
}