updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / animecheck-git / PKGBUILD
bloba5d19a199a44c91596897f39ce107ab7ed1e376e
1 # Contributor: Gilles Bedel <you.re.a.bot_gillou.ray@free.fr>
2 pkgname=animecheck-git
3 pkgver=20110613
4 pkgrel=3
5 pkgdesc="Anime CRC32 checker"
6 arch=(any)
7 url="http://agafix.org/anime-crc32-checksum-in-linux-v20/"
8 license=('GPL3')
9 depends=(python)
10 makedepends=('git')
11 source=(bugfix.patch)
12 md5sums=('e58de4f9dfbd0a26740e65150f16e0ce')
14 _gitroot="https://github.com/taoufix/tools.git"
15 _gitname="tools"
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"
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   patch -p0 < ../bugfix.patch
35   install -D animecheck "$pkgdir/usr/bin/animecheck"
36