updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / fuckpsn-git / PKGBUILD
blob8611426aaf0ee2675ebc3ca77444c3b0af769e4a
1 # Contributor: Juan Diego Tascon
3 pkgname=fuckpsn-git
4 pkgver=20110310
5 pkgrel=1
6 pkgdesc="A simple SSL proxy used to spoof PSN version"
7 arch=(any)
8 url="http://gitorious.org/fuckpsn"
9 license=('GPL')
10 depends=("ruby-rubydns" "ruby-rainbow")
11 makedepends=("git")
13 _gitroot="git://gitorious.org/fuckpsn/fuckpsn.git"
14 _gitname="fuckpsn"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
35 package() {
36   mkdir -p "$pkgdir/opt/$_gitname"
37   cp -rf "$srcdir/$_gitname-build/"* "$pkgdir/opt/$_gitname"
38