updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / reptyr-git / PKGBUILD
blob84e99bc5008921cb712888b189df0f1970cb7554
1 # Maintainer: Anselm Helbig <anselm.helbig+aur@googlemail.com>
2 pkgname=reptyr-git
3 pkgver=20110122
4 pkgrel=1
5 pkgdesc='A tool for "re-ptying" programs'
6 arch=('i686' 'x86_64')
7 url="https://github.com/nelhage/reptyr"
8 license=('MIT')
9 depends=()
10 makedepends=('git')
11 provides=('reptyr')
12 conflicts=('reptyr')
14 _gitroot="git://github.com/nelhage/reptyr.git"
15 _gitname="reptyr"
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   make
38 package() {
39   cd "$srcdir/$_gitname-build"
40   mkdir -p $pkgdir/usr/bin
41   cp reptyr $pkgdir/usr/bin
42   mkdir -p $pkgdir/usr/share/licenses/reptyr
43   cp COPYING $pkgdir/usr/share/licenses/reptyr
44   mkdir -p $pkgdir/usr/share/doc/reptyr
45   cp NOTES README $pkgdir/usr/share/doc/reptyr
46