updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / onemanga-downloader / PKGBUILD
blob1a809cfc4a7df82d7fb3d72e145d102967e9e0d3
2 # Contributor: Samed Beyribey <samed@archlinux.org.tr>
3 pkgname=onemanga-downloader
4 pkgver=20100516
5 pkgrel=2
6 pkgdesc="One Manga Downloader (shell script)"
7 arch=('any')
8 url="http://github.com/suksit/onemanga"
9 install="$pkgname.install"
10 license=('GPL')
11 depends=('bc' 'zip')
12 makedepends=('git')
14 _gitroot="http://github.com/suksit/onemanga.git"
15 _gitname="onemanga"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   #
36   # BUILD HERE
37   #
39   install -Dm755 onemanga $pkgdir/usr/bin/onemanga
40