1 # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
5 pkgdesc="Media player for use on HTPC media centers."
7 url="https://www.lonelycoder.com/showtime"
9 depends=('gtk2' 'libxss' 'libxv' 'libcdio' 'libpulse' 'ffmpeg' 'hicolor-icon-theme' 'desktop-file-utils')
10 makedepends=('git' 'yasm')
11 install=showtime.install
13 _gitroot=https://github.com/andoma/showtime.git
18 msg "Connecting to GIT server...."
20 if [[ -d "$_gitname" ]]; then
21 cd "$_gitname" && git pull origin
22 msg "The local files are updated."
24 git clone "$_gitroot" "$_gitname"
27 msg "GIT checkout done or server timeout"
28 msg "Starting build..."
30 rm -rf "$srcdir/$_gitname-build"
31 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32 cd "$srcdir/$_gitname-build"
34 sed -i -e 's/-Werror//g' -e 's/^\s*CFLAGS\s*=/CFLAGS +=/' Makefile
35 sed -i '/gtk-update-icon-cache/d' support/linux.mk
37 ./configure --prefix=/usr --with-libav=/usr --release
42 cd "$srcdir/$_gitname-build"
43 make DESTDIR="$pkgdir/" prefix=/usr install
46 # vim:set ts=2 sw=2 et: