updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / jradio-git / PKGBUILD
blob0a4e7e82479f0b248e7023f49676851487e63070
1 # Author: Johannes Marbach <jm@rapidrabbit.de>
2 pkgname=jradio-git
3 pkgver=20111127
4 pkgrel=1
5 pkgdesc="An easy to use web radio player"
6 arch=('i686 x86_64')
7 url="https://github.com/Johennes/jRadio"
8 license=('BSD')
9 depends=(gtkmm3 vlc libxml2 curl)
10 makedepends=('git')
12 _gitroot=git://github.com/Johennes/jRadio.git
13 _gitname=git
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [[ -d "$_gitname" ]]; then
20     cd "$_gitname" && git pull origin
21     msg "The local files are updated."
22   else
23     git clone "$_gitroot" "$_gitname"
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting build..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
33   #
34   # BUILD HERE
35   #
36   autoreconf --install
37   ./configure --prefix=/usr
38   make
41 package() {
42   cd "$srcdir/$_gitname-build"
43   make DESTDIR="$pkgdir/" install
44   install -D -m 644 LICENSE $pkgdir/usr/share/licenses/$pkgname
47 post_install() {
48   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
51 post_upgrade() {
52   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
55 post_remove() {
56   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor